我们无法在hotmail上发送来自CRM的电子邮件。我们将谷歌应用程序用作电子邮件主机。我们自己的开发人员定制应用程序PHP。我们可以在每个域发送电子邮件,如yahoo,AOL和除hotmail帐户之外的其他域。
我们检查了我们的PHPMailer脚本,并运行了谷歌smtm,但没有任何工作。请帮我解决这个问题。
<html>
<head>
<title>PHPMailer - Mail() basic test</title>
</head>
<body>`enter code here`
<?php
require_once('../class.phpmailer.php');
$mail = new PHPMailer(); // defaults to using php "mail()"
//$mail->IsHTML(true);
//$mail->CharSet = 'windows-1251';
$body = 'This is ....';
$mail->AddReplyTo("task@mytasker.com","Mytasker1");
//$mail->SetFrom('deep_m@outlook.com', 'Deep');
//$mail->SetFrom('saikat_mytasker@hotmail.com', "Saikat Mallick");
$mail->SetFrom("task@mytasker.com","Mytasker");
$address = "saikat@mytasker.com";
//$mail->AddAddress('saikat_mytasker@hotmail.com', "Saikat Mallick");
$mail->AddAddress('deep_m@outlook.com', 'Deep');
$mail->AddAddress($address, "Saikat Mallick");
$mail->Subject = "Mytasker 123 ...";
$mail->AltBody = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
$mail->MsgHTML($body);
//$mail->AddAttachment("images/phpmailer.gif"); // attachment
//$mail->AddAttachment("images/phpmailer_mini.gif"); // attachment
if(!$mail->Send()) {
echo "Mailer Error: " . $mail->ErrorInfo;
} else {
echo "Message sent!";
}
?>
</body>
</html>