小编Raj*_*kar的帖子

无法实例化邮件功能.为什么会出现此错误

当我试图通过PHPMailer发送邮件时,我收到此错误消息.我的代码如下:

<?
require("phpmailer/class.phpmailer.php"); // First we require the PHPMailer libary in our script
$mail = new PHPMailer(); // Next we create a new object of the PHPMailer called $mail
$mail->From = "rajasekar.kcet@gmail.com";
$mail->FromName = "Rajasekar";
$mail->AddAddress("rajasekar.kcet@gmail.com"); // This is the adress to witch the email has to be send.
$mail->Subject = "First PHP Email message"; // This is the subject  of the email message.
$mail->Body = "Hi! \n\n This is my first e-mail sent through PHP."; // This is the …
Run Code Online (Sandbox Code Playgroud)

html php email phpmailer

19
推荐指数
4
解决办法
12万
查看次数

标签 统计

email ×1

html ×1

php ×1

phpmailer ×1