?
Solved

Problem with HTML Formatted Email

Posted on 2011-04-20
5
Medium Priority
?
199 Views
Last Modified: 2012-06-27
Hi Experts,

I have a problem with html formatted email just recently, and i don't know what could be the possible problem with it,

this is how it works, i have a PHP script that sends email to all  club member when a new member joins. if the member chooses to select two clubs, the script will then send email to those chosen clubs informing them about the details of the their new member. but for any reasons there is this one club member told us that they haven't received any emails recently. (it worked before).

I then made a test to solve the issue, sent them two emails one is a bare-bone plain text email. and the second is a HTML Formatted email. the first email works fine, but the second email didn't, though they received the second email but it says "Sorry your E-mail does not support this type of E-mail".

I am guessing it's their isp/email setup configuration that cause this problem. but i need a concrete reason why this happened.

does any one can help with this problem?

and : pardon me with my English, b'coz it is not my native language.
0
Comment
Question by:pawing
  • 3
  • 2
5 Comments
 
LVL 34

Expert Comment

by:Beverley Portlock
ID: 35434053
The HTML email needs encoding and to have the headers set correctly. The simplest way to do this is to install PEAR's Mail/Mime package and then use the PEAR Mail module to compose and send the emails

http://pear.php.net/manual/en/installation.php

To install Mail (if PEAR is installed) type this on a command line

pear install Mail_Mime
pear install Mail

0
 

Author Comment

by:pawing
ID: 35434307
Hi bportlock,

thanks for your help.

Yes we are using PEAR Mail Module to send those email to the clubs and I am pretty much sure the headers were set properly the script has been there for two of years already and the clubs don't have any complains about not receiving any emails. and suddenly there is this one club emailed us that for the past few days they did not receive emails anymore.



0
 
LVL 34

Accepted Solution

by:
Beverley Portlock earned 2000 total points
ID: 35439372
"suddenly there is this one club emailed us that for the past few days they did not receive emails anymore."

If everyone else is receiving mail from you then surely the problem could be with the customer/club in question? Perhaps their spam filter has changed or an email account has had its settings changed?

If you have access to the system logs then look in the mail log. Scan for the club's email address and

1) when you find the email address look to see the mail transaction number then scan for this number and you will see all log entries for that email. Look at the rightmost column for something that looks like status=sent which means that your mail server talked to their mail server and their mail server accepted the email. In this case it is their problem not yours

2) If you cannot find and email to the club in question in the logs then you may well have a problem. Check that their email address is correct with no funny characaters and make sure it is "trimmed" with no leading or trailing spaces.
0
 

Author Comment

by:pawing
ID: 35442489
Hi bportlock:

"1) when you find the email address look to see the mail transaction number then scan for this number and you will see all log entries for that email. Look at the rightmost column for something that looks like status=sent which means that your mail server talked to their mail server and their mail server accepted the email. In this case it is their problem not yours".

 - I've checked the mail server log, and pretty much convinced that the problem is in our end.

Thanks a lot.

0
 

Author Closing Comment

by:pawing
ID: 35442512
thanks
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

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
It’s a season to be thankful, and we’re thankful for users like you who engage on site, solve technology problems, and network with others in the industry. What tech are we most thankful for? Keep reading.
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 and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses
Course of the Month15 days, 14 hours left to enroll

850 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