Wednesday, 17 August 2016

macos - Attachment is not attached; rather it shows the contents in mail body using uuencode or mail command in mac osx

I use the below command to attach a file.



mailx -s "Report 05/06/07" add@dom.com < /test_output/report.html


uuencode /test_output/report.html /test_output/report.html | mail -s "mailing my c file" add@dom.com


but the attachment is not attached with mail. The attachment content is shown in the mail body.



How i can solve this or is there any other way to send mail automatically with the attachment?

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...