PHP PHP - 梅勒代码
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PHP PHP - 梅勒代码相关的知识,希望对你有一定的参考价值。
<?php
require("class.phpmailer.php");
$mail = new PHPMailer();
$mail->IsSMTP(); // send via SMTP
$mail->Host = "smtp.domain.com"; // SMTP servers
$mail->SMTPAuth = true; // turn on SMTP authentication
$mail->Username = "email@domain.com"; // SMTP username
$mail->Password = "password"; // SMTP password
$mail->From = "email@domain.com";
$mail->FromName = "Name";
$mail->AddAddress("Recipient@emailaddress.com","Name");
$mail->AddReplyTo("yourname@domain.com","Your Name");
$mail->WordWrap = 50; // set word wrap
$mail->IsHTML(true); // send as HTML
$mail->Subject = "Here is the subject";
$mail->Body = "This is the <b>HTML body</b>";
$mail->AltBody = "This is the text-only body";
if(!$mail->Send())
{
echo "Message was not sent <p>";
echo "Mailer Error: " . $mail->ErrorInfo;
exit;
}
echo "Message has been sent";
?>
以上是关于PHP PHP - 梅勒代码的主要内容,如果未能解决你的问题,请参考以下文章
埃因法赫·福尔梅勒·米特·普利希特菲尔德,贝普,冯,反馈一个缺席者
PHP的综合邮件工具
如何破解这段PHP代码!<?php //
php 中, 字符串怎么参加到代码中执行
PHP代码错误导致PHP返回页面空白
php实现打印的代码??