It quite plainly tells you that the -c option does not exist.
On HP-UX, you might be able to find a different version of mailx by enabling the UCB and/or XPG4 subsystems. I can't tell whether those would have a -c option either, though.
If you have śendmail (not necessarily Sendmail, just a command implementing the Sendmail API -- I believe at least both Exim and Postfix offer a /usr/lib/sendmail or /usr/sbin/sendmail command) you can pipe directly to that.
EMAIL_IDS_CC# is not a valid email address but I imagine you are using it as a placeholder for something more useful.
With my luck, your copy of cat is not prepared to read both a here document and a file, but there are workarounds for that as well, of course.
Hello,
I am using heirloom-mailx on UBUNTU 11.04 to create a bash script that sends an e-mail with an attachment.
The command invoked is :
echo $BODY | mailx -v \
-S smtp=smtps://$smtpmailserver:465 \
-S from=$MITTENTE \
-S ssl-verify=ignore \
-S smtp-auth=login \
-S smtp-auth-user=$USER \... (8 Replies)
Hi,
I am trying to send email with attacment and body using "mailx"
(cat body.txt; uuencode attach.txt) | mailx -s "Attachment" abc@xyz.com
When i type this command, the shell is still waiting for me to enter something in standard input and press control D before it sends a mail and... (2 Replies)
I am trying to send email using
"echo "Test Email" | mailx -s "Subject" someone@xyz.com
I also want to send CC to another email address along with TO using above statement.
Can anyone please help me on this.
Thanks. (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)
I would like to use Mailx command, please i hope when you replay give me example. because this is very good think for me.
I am New in sun Microsystems Solaris 10, i hope to give me also rules to learn Solaris easily.
Thank you
Joseph Shafik (8 Replies)
Hi,
My requirement is I have to send email using mailx command and the recipient of the mail should see a alias instead of email address in his mail box. The same functionality that we get when we sent email using an address book. Is this functionality possible through mailx?
I tried doing... (5 Replies)
Im trying to use a shell script to send to a list of email addresses in a txt file. Here is what i have tried but it keeps sending to dead.letter...
Success.ksh contains...
mailx -s"Night Batch Success" 'cat /Scripts/email_addresses.txt' < /Scripts/email_body_message.txt
The email body... (1 Reply)
hi,
i am trying to send mail with attachment to web-based email client like gmail.com using mailx. the problem is it is displayed in content rather than as attachment.
the code i am using is as follows,
uuencode test1.txt test1.txt | mailx -s "test only" aaaa@gmail.com
does anyone... (1 Reply)
Hi,
I am using the mailx command to send email to multple users. The command works fine when i am sending mail to a single user but when i insert multiple email ids inside the quote it does not work. All the email ids are coming from a property file.Please have a lookt at the property file and... (4 Replies)
Hi
A) I am able to send eMail using mailx from a UNIX ( solaris 8 ) host to my Outlook-email-ID : FName.Surname@Citigroup.com ( This is NOT my actual -eMail-ID). But in Outlook the "From :" eMail address is displayed as
" usr1@unix-host1.unregistered.email.citicorp.com " .i.e the words... (2 Replies)