Re: Mail problem



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...
.



Relevant Pages

  • Re: Off-Topic
    ... > Bluescreen leads to downtime. ... > Downtime leads to suffering. ... > Powerful Unix is. ... > The No. 1 remote administration tool for Windows NT is a car. ...
    (freebsd-questions)
  • Re: Off-Topic
    ... Bluescreen leads to downtime. ... Downtime leads to suffering. ... Powerful Unix is. ... The No. 1 remote administration tool for Windows NT is a car. ...
    (freebsd-questions)
  • Re: Question re: sql injection
    ... That won't cover things like unicode sql injection attacks for starters. ... Windows is the path to the darkside...Windows leads to Blue Screen. ... Downtime leads to suffering...I sense much ...
    (comp.lang.php)
  • Re: Newbie
    ... And pay special attention to the notes about register_globals. ... Windows is the path to the darkside...Windows leads to Blue Screen. ... Downtime leads to suffering...I sense much Windows in you... ...
    (comp.lang.php)
  • Re: Array_merge() Question
    ... recordID \t the rest of the data ... ... Windows is the path to the darkside...Windows leads to Blue Screen. ... Downtime leads to suffering...I sense much Windows in you... ...
    (comp.lang.php)