|
Posted by Tommy DN on 12/06/05 12:18
Tommy DN wrote:
> 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???
Now, it works. But there was a serious delay. I recieved all mails the
day after.
Navigation:
[Reply to this message]
|