Not able to send html body using mailx along with attachement

902 Views Asked by At

I tried command : mailx -s "subject" "[email protected]" < abc.html Using this command html content is displayed as text which is not desirable.

above thing happened using :

While using command : mailx -a 'Content-Type: text/html' -s "my subject" "[email protected]" < abc.html , exception is displayed " Content-Type: text/html: No such file or directory".

Also tried using : echo "abc.html" | mail -a ""Content-type: text/html;" -s "subject" "[email protected]" --but didn't work.

Please note I cannot use sendmail command as uuencode is not properly installed hence attachment are not sent with mail properly though html content is properly displayed.

So please advice how to effectively use "mailx" command to send html content with attachments.

0

There are 0 best solutions below