Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to send mail from AIX to email address ?

Status
Not open for further replies.

strikelit

MIS
Sep 10, 2003
88
0
0
US
I would like to send some files form an AIX 5.3 machine to my personal email address. What is the mail command that I can use
 
I haven't found an easy way to email files as an attachment but if they are just text files you can use

as root

mail -s "some subject" you@whatever.com < filename

This may or maynot work as your server probably doesn't have a reverse DNS record set up for it and some email servers may reject it.

If you need to send it as an atachment the easiest way to do this would be to download the sendEmail program and use that but may still have the same issue mentioned above


Norm
 
try ......

uuencode <file name> <tmp file name> |mail -s "See the attached file" <email address>

example

uuencode tmp.txt tmpfile.txt |mail -s "Temp file from AIX" user@domain.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top