Page 1 of 1

Error using mail() function

Posted: Mon Sep 02, 2002 5:07 pm
by pixelengineer
:?: I am trying to use the mail() function on a win 2000 adv server with SMTP installed. I have added a local IP to my server and bound it the smtp service. I also set the same IP for SMTP in my PHP.ini file. When I execute the script, I get the following error:
Warning: Bad Message destination in <path to php script >

Any idea what I am doing wrong?

Thanks.

Posted: Mon Sep 02, 2002 7:36 pm
by volka
mail($to, ...

have you tried to send something with a mailclient to the contents of $to via your smtp-server? maybe $to contains a malformed adress or one your server refuses to transmit....