Error using mail() function

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
pixelengineer
Forum Newbie
Posts: 1
Joined: Mon Sep 02, 2002 5:07 pm

Error using mail() function

Post 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.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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....
Post Reply