Page 1 of 1

Sending PHP HTML Mail

Posted: Mon Oct 04, 2010 9:38 am
by koolsamule
Hi Chaps,

I'm using PHP / PEAR Mail_Mime to send HTML emails from my PHP application.

The mail does send sucessfully, however there are some random equals symbols appearing in the HTML:

Code:

Code: Select all

<p>http://www.domain.co.uk/path/to/file/ftp_login.php</p>
Email Result:
Notice that the 'p' in ftp_login has been replaced by "=".

It's not just links, it's happening in other places, such as within the <H1> tags, but I cannot find a common denominator.

Please help!

Re: Sending PHP HTML Mail

Posted: Mon Oct 04, 2010 10:13 am
by koolsamule
Solved:
Changed: $body = $mime->get();
To: $body = $mime->get(array('html_encoding'=>'base64'));