Computing.Net > Forums > Unix > mailx / sendmail command

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

mailx / sendmail command

Reply to Message Icon

Name: yy1
Date: July 16, 2006 at 23:48:22 Pacific
OS: HP-UX
CPU/Ram: -
Product: -
Comment:

Can anyone provide the command how to send a text file as a attachment with a proper subject using mailx or sendmail command in UNIX.

Note: I am using HP-UX OS. The file send should be the attachment, not in the message body. In addition, I need to put in the mail subject as well.



Sponsored Link
Ads by Google

Response Number 1
Name: ghostdog
Date: July 17, 2006 at 05:25:16 Pacific
Reply:

if your system has uuencode, you can use that to send attachment.

uuencode yourfile yourfile | mailx .....

check the man page of mailx for subject options..


0

Response Number 2
Name: Venu
Date: July 18, 2006 at 21:42:32 Pacific
Reply:

Hi,

uuencode attachment attachment | mailx -m -s "Subject of the Mail" you@you.com

Hope this helps

Regards


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: mailx / sendmail command

difference- Mail/ Mailx/ Sendmail www.computing.net/answers/unix/difference-mail-mailx-sendmail/8093.html

send random file (sendmail) www.computing.net/answers/unix/send-random-file-sendmail/8046.html

How to send mail on UNIX to smtp mail www.computing.net/answers/unix/how-to-send-mail-on-unix-to-smtp-mail/2394.html