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
Old 04-08-2010, 09:30 AM PHP email problem
Junior Talker

Posts: 1
Trades: 0
Hello all,

I have a problem with my mail script. The problem is as follow:

My work adress is POP3 and forwarded to my private gmail adress. Now when I send an email through my PHP script, I receive the email only on my gmail adress, and not on my POP3 account. Which is weird, because with all other emails I receive them on both.

the script is as follow:

function SentMail ($from, $frommail, $to, $subject, $mail) {
$headers = "From: ". $from . " <".$frommail.">\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type: text/html; charset=UTF-8\n";
$headers .= 'X-Mailer: PHP/' . phpversion();


mail($to, $subject, $mail, $headers);

}

Can someone tell me what I've done wrong.
stijn is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-08-2010, 02:45 PM Re: PHP email problem
Novice Talker

Posts: 11
Trades: 0
Hi Stijn.

1. You can check if you receive any bounced e-mails after script execution.
2. Could it be that e-mail is filtered by spam filter on the mailbox with POP3, so it's discarded there or being moved to SPAM folder?
__________________

Please login or register to view this content. Registration is FREE
.:. Professional Hosting since 2003
2wdh.com is offline
Reply With Quote
View Public Profile Visit 2wdh.com's homepage!
 
Old 04-08-2010, 05:00 PM Re: PHP email problem
hhunt's Avatar
Average Talker

Posts: 15
Name: Helen
Trades: 0
There's no way to tell from that small code snippet what the problem is. So, check that your mails are not being discarded. It's worth checking your filter settings as well.

Good luck
__________________
A top-class
Please login or register to view this content. Registration is FREE
that won't rifle through your photos Honest
Please login or register to view this content. Registration is FREE
lesson
Cheap
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
hhunt is offline
Reply With Quote
View Public Profile Visit hhunt's homepage!
 
Reply     « Reply to PHP email problem
 

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.56452 seconds with 12 queries