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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mailx and attachments?

Status
Not open for further replies.

DCCoolBreeze

Programmer
Jul 25, 2001
208
US
Is there a way to send attachments via mailx? I am currently using the command line.
uuencode foo foo | mailx -s 'subject' receiptient

this embeds the message into the body of the email; however, I need to send two separate files in the same email message using mailx
 
I figured it out. I have enclosed sample code for future reference.

SHPFEE_FILE_NAME=test1
ROUTING_FILE_NAME=test2

for i in 'echo $SHPFEE_FILE_NAME $ROUTING_FILE_NAME'
do
uuencode $i $i.txt
done | mailx -m -s "test" someone@someplace.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top