HTML mail with PHP/PEAR Mail_mime

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
peoplesrepublican
Forum Newbie
Posts: 6
Joined: Sat Jan 29, 2005 6:33 am

HTML mail with PHP/PEAR Mail_mime

Post by peoplesrepublican »

Hi,

I am getting an interesting (aren't they all) problem when I send an HTML mail using PEAR from a PHP script. There are links to images in the HTML and on occasion (it's repeatable) the . between the filename and the extension disappears, leaving the image links broken. I have looked at the raw view of the html in the mail in the mail client, and I noticed this phenomenon:

Code: Select all

img src=3D&quote;http://imgserver4/Dev/SU/LinkManagement/su_lm_ad/default_180_150=
jpg&quote; width=3D&quote;180&quote; height=3D&quote;150&quote;><br><p class=3D&quote;bodyText&quote;>&lt;script lan=
In other words, if the . is exactly where a line break occurs, it gets removed. I'm no expert in PEAR, and since I am assuming that it is within PEAR that this is happening (using Mail_mime class), I was hoping someone may be able to point me in the right direction...

Thanks for any help you can give

PR
Post Reply