Email.163.com very useful a complete email sending program

Source: Internet
Author: User
Tags setcookie
Very useful a complete email sending program, very simple, copy the following code to a blank text page, such as index.php, run on the line. Concrete Example: http://zsvalley.uhome.net/email/index.php.
The following is the complete source code: (Any questions please email:zsvalley@cmmail.com)
if ($ok = = ' yes ') {
Setcookie ("Yname", $yname);
Setcookie ("Yemail", $yemail);
if (!eregi ("^[_.0-9a-z-]+@" ([0-9a-z][0-9a-z-]+.) +[a-z]{2,3}$ ", $yemail)) {
echo "Please fill in your email address correctly!" Return ";
}elseif (!eregi ("^[_.0-9a-z-]+@" ([0-9a-z][0-9a-z-]+.) +[a-z]{2,3}$ ", $femail)) {
echo "Please fill in your friend's email address correctly!" Return ";
}else{
$message = $fname. "Hello: nn your friend." $yname. " I have a letter to say to you: N-----------------------------------n ". $comments." n-----------------------------------nnn Services: Http://zsvalley.uhome.net/email/nn Valley Network no bounds/HTTP/ valley.coc.cc N─────────────────────────n ";
Email send
Mail ($femail, $title, $message, "from: $yemail");
echo nl2br ($message);
$ok = ' no ';
echo "". NL2BR ($message)."

Back to send Page";
}
Exit ();
}
?>


<title>Recommend a webpage to a friend</title>






Quick Email System!





"The copyright of this article is owned by the author and house Orso near net, if need to reprint, please specify the author and source"

The above describes a very practical email.163.com a complete email sending program, including the content of email.163.com, I hope that the PHP tutorial interested in a friend helpful.

  • Related Article

    Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.