You are here: Re: send mail to someone « PHP Programming Language « IT news, forums, messages
Re: send mail to someone

Posted by Java Boy on 12/04/05 00:33

make sure your smtp server allow relaying ...

--
Geeks Home
www.fahimzahid.com




"Tommy DN" <nospam@nospam.com> wrote in message
news:fK-dnV1o1eJiiA_eRVnyuA@scarlet.biz...
> This code works and send me e-mail:
> ---
> $recipient="email@mydomain.com";
> $subject="subject";
> $header="From: " . $_POST['emailadres'];
> $mail_body= $_POST['commentaar'];
> mail($recipient, $subject, $mail_body, $header);
> ---
> But when I want to send automatic e-mail ( when a user registers ) then
> the code doesn't work.
>
> So I changed $recipient to another e-mail adress that isn't mine:
> ---
> $recipient="someotheremail@someisp.com";
> $subject="subject";
> $header="From: " . $_POST['emailadres'];
> $mail_body= $_POST['commentaar'];
> mail($recipient, $subject, $mail_body, $header);
> ---
> So when I check someotheremail@someisp.com ... there's no mail :-(
>
> What's wrong? Can I only send e-mail to my own domain and not to
> somebody else? What's the solution???

 

Navigation:

[Reply to this 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

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