?
Solved

Multipart email php decoding

Posted on 2006-11-14
2
Medium Priority
?
350 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 19

Accepted Solution

by:
VoteyDisciple earned 1500 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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 …
Suggested Courses

765 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