Posted by Philip Ronan on 10/03/05 17:36
"baustin75@gmail.com" wrote:
> I have a very simple problem but cannot seem to figure it out. I have a
> very simple php script that sends a test email to myself.
A script that sends email to *itself*? I don't think so.
> If I try to run this same script in Internet Explorer or Opera I
> never recieve the email.
It makes no difference what browser you use. PHP scripts run on servers.
They don't run in browsers.
> $brian = "test@test.com";
> $subject = "MAC";
> $body = "first test email";
> $from = "brian@test.com";
>
> mail ($brian, $subject, $body, $from)
The fourth parameter is supposed to contain additional *headers*, not bare
email addresses. Try this instead:
$from = "From: brian@test.com";
--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
[Back to original message]
|