General
cancel
Showing results for 
Search instead for 
Did you mean: 

Using mailx from a script to send attachment

CA816843
Occasional Visitor

Using mailx from a script to send attachment

I wannt to send e-mail messages with
attachments using mailx. I will be calling
mailx from a script. I would also like to
use the Cc and Bcc if possible.

thanks....
2 REPLIES
CA538024
Honored Contributor

Re: Using mailx from a script to send attachment

Hi Jonathan,

Please post this question in the appropriate section of the Business Customer Discussion Groups. Here's a link to the home page for these forums:

http://forums.itrc.hp.com/cm/1,,2,00.html

If your product doesn't appear in these forums, try the ITRC forums:

http://forums.itrc.hp.com/cm/

If all else fails, here's a web site to help you find support for your product:

http://h20000.www2.hp.com/bizsupport/TechSupport/CallHP.jsp

Thanks!

Kathy
Forum Administrator
CA1002441
Occasional Visitor

Re: Using mailx from a script to send attachment

I have used the following 2 lines successfully to send messages and attachments with mailx.

#
# create attachment
#
uuencode TEST1 TEST1 > TEST1.attach
#
# now send message in file "messagebody" with
# the attachment
#
cat messagebody TEST1.attach | mailx -s "sublect verbiage" myname@myaddress.com

Hope this reply is posted in the right place.
Good Luck