Wednesday, October 16, 2013

Sending attachments using uuencode and mailx on HP/UX 11.00

www.unixbabuforum.inI am trying to send attachments using uuencode with mailx but the attachment that comes through is just an empty file. 
Sendmail is configured and I can send emails successfully with a text file as the body of the message but if I try to use uuencode to attach a file to the email the email comes through with a file attached but the file is empty. Syntax used is as follows. 

uuencode attached_file.txt | mailx -r sender@address -s "attachment testing" recipient@address 

I hope some one can help or point me in the direction of an email client running on HP/UX 11.00 which can easily send attachments as part of a script. 

www.unixbabuforum.inuuencode attached_file.txt | mailx -m -r sender@address -s "attachment testing" recipient@address 

The -m option does not add MIME header lines to the email and so allows the attachment to go through without its guts being ripped out my the SMTP relay agent.


Post a Comment

Design by BABU | Dedicated to grandfather | welcome to BABU-UNIX-FORUM