";
PHP Mail function
Mail ($yourEmailAddress, $subject, $htmlEmail, $header);
Echo ("Message sent!");
?>
We look at it, meaning is to send other pages submitted to my mailbox, HTML I am familiar with, but PHP do not understand, this code source file is. php, only these code, I hope to help me explain how this is sent, and the fact that the code does not work, My mailbox didn't receive the mail
------Solution--------------------
About the content of the email, the general book is more concise introduction.
$yourEmailAddress = "[email protected]";
$yourWebAddress = "www.cyhzxx.com";
The above variables are assigned values
$name = $_post[' name '];
$email = $_post[' email '];
$message = $_post[' message '];
The above is the post form get
Message from site visitor
Wait for 4 sentences to display the form information obtained
Mail ($yourEmailAddress, $subject, $htmlEmail, $header);
The first parameter: the address to be sent, the second argument: the subject of the message, the third: The message content, looks like the fourth: the form from which address.
That's clear, your code has 。
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.