View Single Post
Old 2005-07-26, 11:11 PM   #2
Halfdeck
You can now put whatever you want in this space :)
 
Halfdeck's Avatar
 
Join Date: Oct 2004
Location: New Haven, CT
Posts: 985
Send a message via ICQ to Halfdeck
Like PornoTGB pointed out, you have to stick to this basic syntax:

mail($targetemail, $subject, $message);

Example: mail("paulazahn@cnn.com","Re:Nice interview last night", "Hey Paula, just saw your interview with the girl working for New York Confidential....");

If you want to add header info, then like on the example on http://us2.php.net/manual/en/function.mail.php,
use: mail($targetemail, $subject, $message, $header).

In other words, mail($subject, $target_email, $header...) or any other variants like mail($header, $subject, $to_email) ... will not work.
__________________
Success is going from failure to failure without a loss of enthusiasm.
Halfdeck is offline   Reply With Quote