Hi, ... [Snip...] ... Instead of messing around with the headers, I would strongly recommend use of a framework like swiftmail[1] [1] http://swiftmailer.org/

Message 4 of 4
, Nov 3, 2010

0 Attachment

Hi,

On 03-Nov-2010, at 3:02 PM, Amardeep wrote:

> try setting the headers as mentioned in the PHP manual . you can take a look
> at the following code
>
> // To send HTML mail, the Content-type header must be set
> $headers = 'MIME-Version: 1.0' . "\r\n";
>

[Snip...]

>
> One of the reason could be you are tried to send a HTML mail instead of
> plain/simple text, so need to set the proper content type.
> Hope this helps ..
>

Instead of messing around with the headers, I would strongly recommend use of a framework like swiftmail[1]