DESCRIPTION
Mailx is an intelligent mail processing system, which has a command syntax reminiscent of ed(1) with lines replaced by messages. It is based on Berkeley Mail 8.1,
is intended to provide the functionality of the POSIX mailx command, and offers extensions for MIME, IMAP, POP3, SMTP, and S/MIME. Mailx provides enhanced fea-
tures for interactive use, such as caching and disconnected operation for IMAP, message threading, scoring, and filtering. It is also usable as a mail batch lan-
guage, both for sending and receiving mail.
The following options are accepted:
-A name
Executes an account command (see below) for name after the startup files have been read.
-a file
Attach the given file to the message.
-B Make standard input and standard output line-buffered.
-b address
Send blind carbon copies to list. List should be a comma-separated list of names.
-c address
Send carbon copies to list of users.
-D Start in disconnected mode; see the description for the disconnected variable option.
-d Enables debugging messages and disables the actual delivery of messages. Unlike -v, this option is intended for mailx development only.
-e Just check if mail is present in the system mailbox. If yes, return an exit status of zero, else, a non-zero value.
-E If an outgoing message does not contain any text in its first or only message part, do not send it but discard it silently, effectively setting the skipemp-
tybody variable at program startup. This is useful for sending messages from scripts started by cron(8).
-f [file]
Read in the contents of the user's mbox (or the specified file) for processing; when mailx is quit, it writes undeleted messages back to this file. The
string file is handled as described for the folder command below.
-F Save the message to send in a file named after the local part of the first recipient's address.
-H Print header summaries for all messages and exit.
Last edited by RudiC; 11-08-2017 at 08:01 AM..
Reason: Added CODE tags.
HI all,
Ping is happening to a AIX box...but telnet is not happening...
AIX box doesn't have any conslole...
Please help how to resolve it.
Thanks in advance ..
Manu (2 Replies)
Hi,
mailx -s "hi" -r "abc@yahoo.com" aaa@yahoo.com<<EOF
Hi,
~<!uuencode a.txt a.txt
EOF
the above code is sending mails, but attachment is not going instead i just get like below
~<!uuencode a.txt a.txt
Thanks. (3 Replies)
Hi all,
how to send an E-mail with an attchment in HP-Unix...?
i am using the following command in solaris...! for HP..?
uuencode $Basic_location/out.csv $Basic_location/out.csv | mailx -s "$SUBJ" $TO_LIST
please let me know how we can use this in HP box...? (6 Replies)
hi,
i want to pass a unix variable as the subject of the mail alongwith a string. My part of code is as below..
week_end_dt=`sqlplus -s rsamart@martdev.world/rsamart<<EOF
SET FEED OFF;
SET TIMING OFF;
SET HEADING OFF;
SET PAGESIZE 500;
SET LINESIZE 1000;
select... (14 Replies)
How does the -s command work with mailx. I know that -s is to create a symbolic link when being used with ln but i'm not sure what the command does with mailx.
Anyone?:confused: (1 Reply)
Hi,
This post is regarding sending mails from Unix. How can we include "bcc" in a "mailx" command. I searched google to find out the -b option; but my man pages doesnot show that option(it throws me an error: "-b not found"). It has a "~b" option but i am not sure how to use it. Could you people... (2 Replies)
Hi All,
Can anyone please provide the command for sending an mail with attachment using mailx command.
Thanks in Advance :)
Regards,
Siram. (3 Replies)
Hi,
I am seeing that this command is sending mail even when the nawk command in untrue ( does not have any output ). I only want it to send mail, where it goes above the threshold, and has some output.
nawk -F'(MOD dn="uid=)|(DEL dn="uid=)|' '/(MOD dn="uid=)|(DEL dn="uid=)/... (2 Replies)
( cat textfile.txt; ) | mailx -s "test mail " `cat mailids.lst`
from :'server@example.com'
to : for all contacts in text file mailids.lst
above command is sending mails correctly for all contacts in text file mailids.lst, but 'from' address is showing as 'server@example.com' but i want... (5 Replies)
I need to do below in mailx :
1. to list
2. CC list (I am using tilde command for this)
3. -r option
4. attach .csv file
Below is the command i am using :
( echo '~c abc@xyz.com'; cat mailtext.txt; uuencode attach.csv attach.csv) | mailx -s "${SUBJECT}" -r "abc@xyz.com" -m ${MAIL_LIST}... (4 Replies)