Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
mail script not working for random users ?
Old 10-10-2010, 01:44 PM mail script not working for random users ?
virtualgeorge's Avatar
Average Talker

Posts: 29
Trades: 0
I have a php mail script I have been using for a few years to send html messages but maybe it needs updated?
I can send without problems on several of my pc's with different browsers but the client has issues on his pc. When he submits the form on his laptop with windows 7, he sees the confirmation page but not emails are delivered. I set myself as a cc to confirm.
When the client checks in FF in vista it works, in IE in vista it does not mail?
Here is what I am using, does this look ok or any suggestions?

Code:
// subject
$subject = 'Online Shuttle Reservation - Airport';
$date =  date("F d, Y");

// message
$message = '
<html> html message here </html>
';

// To send HTML mail, the Content-type header must be set
$headers  = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

// Additional headers
$headers .= 'To: Non Stop Shuttle Service <clients@email.com>' . "\r\n";
$headers .= "From: Non Stop Shuttle Service <clients@email.com>" . "\r\n";
$headers .= 'Bcc: test@email.com' . "\r\n";
$headers .= 'Bcc: test@email.com' . "\r\n";
// sends to person who filled out the form:
$headers .= "Bcc: $name <$email>\r\n"; 
//$headers .= 'Bcc: birthdaycheck@example.com' . "\r\n";

// Mail it
mail($to, $subject, $message, $headers,'-f'.$email);

Last edited by virtualgeorge; 10-10-2010 at 02:08 PM..
virtualgeorge is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 10-12-2010, 07:56 AM Re: mail script not working for random users ?
Novice Talker

Posts: 8
Name: Massimo
Trades: 0
php has nothing to do with the client browser and/or o.s.

check if the $message variable is filled (if it comes from a form), check if the mail go to spam folder, check if the server is setup for sending mails
__________________
Start a
Please login or register to view this content. Registration is FREE
at Logo Arena! Get your custom logo designed by
Please login or register to view this content. Registration is FREE
maxi-72 is offline
Reply With Quote
View Public Profile Visit maxi-72's homepage!
 
Old 10-12-2010, 04:04 PM Re: mail script not working for random users ?
virtualgeorge's Avatar
Average Talker

Posts: 29
Trades: 0
After testing it seems the problem is with only sending to aol address's.
The client is using aol email and sometimes the messages appear and sometime get an undeliverable message and often they just don't show up at all. Not in the spam folder either.

I guess maybe my shared hosting server is blacklisted?
Sent an email to abuse dept so will have to see what they say.
virtualgeorge is offline
Reply With Quote
View Public Profile
 
Old 10-12-2010, 06:06 PM Re: mail script not working for random users ?
Novice Talker

Posts: 8
Name: Massimo
Trades: 0
uhm maybe... I usually have problems with hotmail (they seem to blacklist almost anyone lol), but I didn't experience aol
__________________
Start a
Please login or register to view this content. Registration is FREE
at Logo Arena! Get your custom logo designed by
Please login or register to view this content. Registration is FREE
maxi-72 is offline
Reply With Quote
View Public Profile Visit maxi-72's homepage!
 
Old 10-12-2010, 06:20 PM Re: mail script not working for random users ?
virtualgeorge's Avatar
Average Talker

Posts: 29
Trades: 0
I tried the same form on 3 different servers, it seems that after I test it a few times. the first few go through but then no more. I guess they must see the repeated tests and mark it as spam. The form displays the results as well as emailing so I guess I will just have to put a note on the form and tell aol users to print the form. AOL sucks, is there still alot of people that use them?
virtualgeorge is offline
Reply With Quote
View Public Profile
 
Old 10-13-2010, 06:41 PM Re: mail script not working for random users ?
Novice Talker

Posts: 8
Name: Massimo
Trades: 0
uhm, in my site there is nobody using aol until now, just some hotmail accounts that are the ones I had troubles with
__________________
Start a
Please login or register to view this content. Registration is FREE
at Logo Arena! Get your custom logo designed by
Please login or register to view this content. Registration is FREE
maxi-72 is offline
Reply With Quote
View Public Profile Visit maxi-72's homepage!
 
Old 10-14-2010, 06:12 AM Re: mail script not working for random users ?
Banned

Posts: 3
Name: Youlanda
Trades: 0
Yeah,I have the same problem with you
tigers16 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to mail script not working for random users ?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25357 seconds with 12 queries