Reply to Re: Mail problem

Your name:

Reply:


Posted by Andrew Hutchings on 06/28/07 19:05

Emmanuel Petit wrote:

> //second tracking email to webmaster of the site
> $details="Mail sent to $ea";
> mail('webmaster@testsite.com', 'Activation',$details, 'From:
> administration@testsite.com');

> 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@testsite.com>' . "\r\n" .
'Reply-To: administration@testsite.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();

mail('webmaster@testsite.com', 'Activation',$details, $headers,
'-fadministrator@testsite.com');

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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация