Sending PHP HTML Mail

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
koolsamule
Forum Contributor
Posts: 130
Joined: Fri Sep 25, 2009 10:03 am

Sending PHP HTML Mail

Post 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!
koolsamule
Forum Contributor
Posts: 130
Joined: Fri Sep 25, 2009 10:03 am

Re: Sending PHP HTML Mail

Post by koolsamule »

Solved:
Changed: $body = $mime->get();
To: $body = $mime->get(array('html_encoding'=>'base64'));
Post Reply