Body:
Send email online, you can use the mail () function. The format is as follows:
Mail (recipient, subject, content, mail file header);
On the Internet, send email to webmaster, usually this: webmaster@163.com so, when clicked Webmaste Queensland Unlimited r@163.com This link, will start the default mail editor to write email, it is troublesome, using the mail () function, You can easily compile an online sending page. The recipient of this Queensland Unlimited page is fixed (webmaster@163.com), there is a need to refill the recipient's address, and the subject we can also be set it down. The following example:
Files: email.html
<title>Send to Webmaster</title>
Network Management receiving letter
Files: mail.php
if (empty ($from) or empty ($subject) or empty ($content)) {echo "is not completed, please return";}
$body = "[subject] $subjectn";
$body. = "[sender] $fromn";
$body. = $content;
$deal =mail ("webmaster@163.com", $subject, $body, "from: $from");
if ($deal) {echo ' sent successfully! ";} Else{echo "failed to send a piece!!! ";}
?>
PHP introduced to this, also almost, you do not feel the power of PHP, is not also want to join the ranks of PHP, right now. To make yourself fly in PHP, this knowledge is still Queensland unlimited insufficient, it can only help you get started. After the introduction, the practice is personal. Good-bye, my friend, (^_^)
--(end of full text)--
http://www.bkjia.com/PHPjc/315389.html www.bkjia.com true http://www.bkjia.com/PHPjc/315389.html techarticle text: Send email online, you can use the mail () function. The format is as follows: Mail (recipient, subject, content, mail file header); On the Internet, send an email to the webmaster, usually this: ...