Solved

Multipart email php decoding

Posted on 2006-11-14
2
332 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
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
This article discusses four methods for overlaying images in a container on a web page
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.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

743 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

8 Experts available now in Live!

Get 1:1 Help Now