Re: send HTML formatted mail (for M$ Outlook) with mailx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 10/25/10 1:07 AM, Sven Aluoor wrote:
> On Thu, Oct 21, 2010 at 6:12 PM, John Doe<jdmls@xxxxxxxxx>  wrote:
>> Not sure about outlook but the following works for me and tbird:
>> Add "Content-type: text/html" at the begining...
> This doesn't work with M$ Outlook. I receive a plain text mail with
> the contents:
>
> Content-type: text/html
> <p>
> <table border='1' width='90%' align='center' summary='Script output'>
> <tr>
> <td align="right">
>    15361753
> </td>
> <td>
> [...]
>
> any other idea?

the Content-type:  has to be part of the message HEADER, not the message 
BODY.  they are separated by a blank line.  afaik, you can't modify the 
header generated by mailx, instead, you need to use the sendmail 
command, and create the whole header yourself.


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux