I am not sure if I need to use PHP for this or not. When a user fills out a form and submits it I want the data to go directly to a corresponding email address. I know how to insert the form data into the db and then use the mail function as follows to send the data to the email address but I don't want to store it in my database if I don't have to
mail("you@whateverdomain.com", "Subject", "$myrow[1]\n$myrow[2]\n$myrow[3]",
"From: whoever@{$_SERVER['SERVER_NAME']}\r\n" .
"Reply-To: noname@{$_SERVER['SERVER_NAME']}\r\n" .
"X-Mailer: PHP/" . phpversion());
}
where $myrow[1]\n$myrow[2]\n$myrow[3] refer to the data submitted by the user and then put into the db.
Put simply, how do I directly send data submitted by a user via a form on my website to another's email address? How do I refer to the form data in the mail function? I hope this is clear, if not let me know.
Thanx in advance