Operating System - HP-UX
1753393 Members
7101 Online
108792 Solutions
New Discussion юеВ

Re: Can you send e-mail attachment using mailx

 
Ronald Cogen
Frequent Advisor

Re: Can you send e-mail attachment using mailx

Hi,

/usr/bin/mailx -s "$LOCALHOST ...title ..." receiver@xxx.xx < /dir/file.dat

Make sure that your /etc/sendmail.cf has the appropriate parameters.

Regards,
Ron
I've been down so long it looks like up to me
Chua Wen Ching
Regular Advisor

Re: Can you send e-mail attachment using mailx

I think you just type:
mailx abc@hotmail.com < file.txt.

You can enter whatever email and file you want. :D

Cc and Bc i never try before.

From,
Chua Wen Ching :D
wenching
Steven E. Protter
Exalted Contributor

Re: Can you send e-mail attachment using mailx

Here is a sendmail script that can do it.

I'm hoping you are flexible on which mail utility to use. sendmail handles attachments better.

I got this straight out of an hp forum but could not find the post.
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com