What am I doing wrong??

the mail() function

Moderators: macek, egami, gesf

Post Reply
User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

Post by Alexej Kubarev » Sun Aug 14, 2005 1:27 am

firt of all you are not using code tags when posting... i have fixed that.

now:

Code: Select all

$headers = "Van: $name<$email>\r\n";


is incorrect as there is no Van header. and even if writing in dutch you still have to use english headers: From, Reply-To and so on.

now replace the last parameter with $headers in this line

Code: Select all

mail("myEmail@rara.com", $subject, $message,"Van: $name<$email>");


make sure you have configured your smtp server and php to use the correct server

User avatar
Alexej Kubarev
Site Admin
Site Admin
Posts: 2223
Joined: Fri Mar 05, 2004 7:15 am
Location: Täby, Stockholms län
Contact:

Post by Alexej Kubarev » Sun Aug 14, 2005 7:56 am

did you check php.ini smtp section`?

you need to set the correct values there for mail function to work..

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest