Solved

Multipart email php decoding

Posted on 2006-11-14
2
336 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
The viewer will learn how to count occurrences of each item in an array.
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 …

830 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