Reply to Re: mail problem

Your name:

Reply:


Posted by shimmyshack on 06/26/07 03:00

On Jun 25, 6:07 pm, Emmanuel Petit <emmanuel.peti...@free.fr> wrote:
> I apologise in advance for my little knowledges in php.
> I use PHP 5.2.1
> Here is an extract of the script which causes me problems.
>
> //email of recipient
> $ea='mis...@somesite.com';
>
> //tracking email to the webmaster of the site
> $dd='webmas...@testsite.com';
> mail($dd, 'Activation',$details, 'From: administrat...@testsite.com');
>
> //prepar the body of the mail
> $body = $name . ',';
> $body .= "\n\nThank you for activating your account:\n\n\n";
> $body .="http://www.testsite.com/fr/activation.php?x=$ts";
> $body .= "\n\nSee you soon onwww.testsite.com.";
>
> //send the mail
> mail($ea, 'Mail activation',$body, 'From: administrat...@testsite.com');
>
> //second tracking email to webmaster of the site
> $details="Mail sent to $ea";
> mail('webmas...@testsite.com', 'Activation',$details, 'From:
> administrat...@testsite.com');
>
> Okay.
> The problem :
> I create a test user, fill out all the details giving one of my email
> adress, on my own PC (but doing it on the live web site NOT IN LOCAL),
> and click the activate button on the form. The script runs perfectly,
> and after a few second I get the email in my mail box with the
> activation link.
> In the webmaster mailbox, I get the two tracking email. So far, so good.
>
> Now, the webmaster create a user. This user on a different machine (two
> users in differents places tried and had the problem), goes through the
> same activation process, fills in his email address, and click the
> activate button. He never receives his activation mail, but the
> webmaster still gets the two tracking mails.
>
> I tried on different machines, with different users, without success.
> Can someone help me?
>
> thank you.

The webserver you use might be on a blacklist and so somedomain.com
might block the email, the web hosting company you use might not allow
mails to be sent to other domains other than yours, in other words the
pop email server you use might be ok cos its on the "same network" as
the webserver
Try using phpmailer instead and send you email via an authenticaed
smtp server, using an account you set up to act as the originating
account whever your server sends out emails. This way the email is
less likely to be seen as spam, and you are not at the mercy of other
users of your webserver which might be trying to send spam.

[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

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