全球主机交流论坛

标题: 大胡子 探针发来...某人说你里面有php邮件参数 [打印本页]

作者: tobeychan    时间: 2011-12-2 00:00
标题: 大胡子 探针发来...某人说你里面有php邮件参数
大胡子 探针发来...来...某人说你里面有php邮件参数
作者: lazyzhu    时间: 2011-12-2 00:01
我要了,大胡子不理我
作者: dakai    时间: 2011-12-2 00:03
我自己用的,分拿来
  1. //设置邮件信息
  2. $to= '[email protected]';
  3. $subject="=?UTF-8?B?".base64_encode("邮件主题!")."?=";
  4. $message="";

  5. //设置邮件头Content-type header  
  6. $header  = "MIME-Version: 1.0\r\n";                    //设置MIME版本  
  7. $header .= "Content-type: text/html; charset=iso-8859-1\r\n";     //设置内容类型和字符集  
  8. //设置收件人、发件人信息  
  9. //$header .= "To: Simon <[email protected]>, Elaine <[email protected]>\r\n"; //设置收件人  
  10. $header .= "From: abc.net <[email protected]>\r\n";                               //设置发件人  
  11. //$header .= "Cc: [email protected]\r\n";                                         // 设置抄送  
  12. //$header .= "Bcc: [email protected]\r\n";                                       // 设置暗抄  
  13. //echo $header;  

  14. //设置html格式E-mail内容
  15. if ($message) {
  16.     $message= "
  17.     <html>  
  18.     <head>  
  19.     <title>Alert</title>  
  20.     </head>  
  21.     <body>"  
  22.     .$message.
  23.     "</body>  
  24.     </html>  
  25.     ";  
  26.     mail($to, $subject, $message,$header);
  27. }
复制代码

作者: uconny    时间: 2011-12-2 00:05
提示: 作者被禁止或删除 内容自动屏蔽
作者: Kvm    时间: 2011-12-2 00:08
哦也
作者: 大胡子    时间: 2011-12-2 00:15
原帖由 Kvm 于 2011-12-2 00:08 发表
哦也





欢迎光临 全球主机交流论坛 (https://hostloc.9hanju.com/) Powered by Discuz! X3.4