|
Posted by Tyrone Slothrop on 01/09/07 02:16
>Thanks, but now I get an new error:
>Warning: mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid
>Address in
>
>I'm sure the email addresses I use is valid
>
>This is the code I use to send the email:
>$headers = 'From: me <it_consultant1@hotmail.com>' . "\n";
>mail($email, "test av website", "helloworld", $headers);
Try this:
$headers = "From: me <it_consultant1@hotmail.com>\n";
>in php.ini I have SMTP = localhost
>
>I haven't got microsoft exchange or similar mail program installed on my pc.
>I have outlook express installed on my pc, so I use outlook express when
>browsing newgroups and sending emails. So I thought if I could send email
>via outlook express then maybe it's possible to send email from a web site
>hosted on the same pc.
It is very possible that you do not have a mail daemon set for PHP to
use. I only do work on *NIX servers, so I do not know.
Perhaps the question you should be asking is, what mailer daemon
should I use for Windows?
[Back to original message]
|