Home >Backend Development >PHP Tutorial >email.163.com A very practical and complete email sending program

email.163.com A very practical and complete email sending program

WBOY
WBOYOriginal
2016-07-29 08:34:282733browse

A very practical and complete email sending program. It is very simple. Just copy the following code to a blank text page, such as index.php, and run it. Specific example: http://zsvalley.uhome.net/email/index.php.
The following is the complete source code: (If you have 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-]+ ) "^[_.0-9a-z-]+@([0-9a-z][0-9a-z-]+.)+[a-z]{2,3}$",$femail)){正 Echo "Please fill in your friend's email address correctly! & Lt; a & gt; return & lt;/a & gt;"
} else {
$ message = $ fname. ", Hello: nn your friend". $ Yame. "I am writing a special letter to say to you: n----------------------------------n".$comments ."n----------------------------------nnn provides services: http://zsvalley.uhome. net/email/nn◆◆◆ valley network without boundaries http://valley.coc.cc ◆◆◆n──────────────────────── n ";
// email Send
Mail ($ Femail, $ Title, $ Message," From: $ Yemail "); ;html>".nl2br($message)."

Return to the sending page



Fast email system!

  
  
  
  
  
  
  
  
  
  
  
  
主题:  

您的姓名:>
邮件地址:>
朋友的姓名:
邮件地址:
您想说的话:
      VALUE="发送" NAME="send" /div>



  
【本文版权归作者与奥索网共同拥有,如需转载,请注明作者及出处】    

以上就介绍了email.163.com 很实用的一个完整email发送程序,包括了email.163.com方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn