Re: Mail problem
- From: Andrew Hutchings <info@xxxxxxxxxxxx>
- Date: Thu, 28 Jun 2007 19:05:52 GMT
Emmanuel Petit wrote:
//second tracking email to webmaster of the site
$details="Mail sent to $ea"; mail('webmaster@xxxxxxxxxxxx', 'Activation',$details, 'From: administration@xxxxxxxxxxxx');
I tried on different machines, with different users, without success. Can someone help me?
thank you.
Typically this is due to email hitting the spam filter on the mailbox. If you are running from your home IP address then there won't be much you can do to stop this as most ISPs block home IP addresses from sending mail. Have a look in the mail logs if you can, that may give you a clue. You can improve the chances of the mail getting through by doing:
$headers = 'From: Administrator <administration@xxxxxxxxxxxx>' . "\r\n" .
'Reply-To: administration@xxxxxxxxxxxx' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail('webmaster@xxxxxxxxxxxx', 'Activation',$details, $headers, '-fadministrator@xxxxxxxxxxxx');
Note: The -f flag assumes the server isn't running Windows, if it is remove that parameter from the command.
--
Andrew Hutchings - LinuxJedi - http://www.linuxjedi.co.uk/
Windows is the path to the darkside...Windows leads to Blue Screen. Blue Screen leads to downtime. Downtime leads to suffering...I sense much Windows in you...
.
- References:
- Mail problem
- From: Emmanuel Petit
- Mail problem
- Prev by Date: Re: turn on FTP on linux
- Next by Date: PHP Uploader displays PHP Code in IE. Works fine in Firefox, Safari
- Previous by thread: Mail problem
- Next by thread: switch easy
- Index(es):
Relevant Pages
|