Solved

Multipart email php decoding

Posted on 2006-11-14
2
333 Views
Last Modified: 2008-02-01
Before I migrated to a new linux server the php mail script built into the application worked with no issues. It was sending emails in html format with a logo.
now after the server migration it is decoding errors and the html code is showing up

I am getting this type of errors:
-----------------------------
X-Mailer: PHP-EMAIL,v2.0 (wmfwlr AT cogeco DOT ca)

MIME-Version: 1.0

Content-Type: multipart/alternative;
boundary="--60ef6ca862242a232bcbb4047f167538"
----60ef6ca862242a232bcbb4047f167538

Content-Type: text/plain; charset="iso-8859-1"

Content-Transfer-Encoding: 8bit

 <font size='3' face='Arial, Helvetica, sans-serif'>

Employee Name:&nbsp;&nbsp; Joe Smith

<br><br>

---------------------
Any ideas what may be wrong. Nothing on the script was changed, just the files moved to the new server. anything I can check?
0
Comment
Question by:onlinerack
2 Comments
 
LVL 19

Accepted Solution

by:
VoteyDisciple earned 500 total points
ID: 17946499
None of those are actually errors, that's just part of the raw message getting displayed.

I suspect the problem is that somewhere the mail script is messing up where \r\n pairs go in the original message header (or is splitting up lines in a funny way).  If your e-mail client has a feature to view the raw source of the message (the headers and everything -- most do have such a feature) what do you see at the top leading up to that X-Mailer: header?
0
 
LVL 5

Author Comment

by:onlinerack
ID: 17977007
used a different script and that solved the problem. I agree with you, I did not like the script I was using but hey (as long as it worked why fix it) ;)
Thank you for your help
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now