?
PHP FAQ
PHP Articles
PHP Help
Bulletin Board
PHP Manual (NEW!)
First Time PHP'ers
Help with programming
Sql assignment help
PHP Homework Help
C# Help
?
?E-Mail Form
Author :??(---.client.mchsi.com)
Date :???09-26-03 14:39
ok i made a form where they type there info and they submit ti and then they go to a page where i says the data they sent and .ect now how do i make it actully e-mail it???? all it is doing is e-mailing there e-mail and theer name to a guys e-maiol do you know how?
?Re: E-Mail Form
Author :?martin?(---.access.uk.tiscali.com)
Date :???09-27-03 02:24
The full syntax of the mail() function is:
mail("recipient", "subject", "message", "mail headers");
To add information to the email like the from address you must include this information in the mail headers. For example:
$headers .= "From: $name < $email >\n";
$headers .= "X-Sender: < $email >\n";
$headers .= "X-Mailer: yourdomain.com form\n"; // mailer
$headers .= "X-Priority: 1\n"; // Urgent message!
Replace the variable $name with who you want it to be sent from and $email with their email address. Then use the mail function in the following way.
mail("email to send to", "subject here", "Message goes here", $headers);
For more information please visit php.net
?Re: E-Mail Form
Author :??(202.152.226.---)
Date :???09-28-03 23:15
no thanks @!#$