不发送电子邮件到所需的地址

时间:2014-04-11 17:24:07

标签: php mysql email

嗨,有人可以查看这段代码,这是昨天的工作,并且电子邮件发送到正确的地址,现在它将无法工作但成功消息仍在显示。有什么想法吗?

mysql_select_db("lr", $con);

require 'mail/class.simple_mail.php';
$mailer = new SimpleMail();

$comments = $_REQUEST['comments'];
$time = $_REQUEST['time'];
$date = $_REQUEST['date'];
$place = $_REQUEST['place'];


$message = "<strong>This is an email from the bride to you the bridesmaids, here is the information on the next dress fitting<br /><br />Date:".$date." <br /> Time:".$time."<br />Place: ".$place." <br /> Any other comments:<br />".$comments." </strong>";



$send   = $mailer->setTo('edonaghy--@hotmail.co.uk', 'Your Email')
                 ->setSubject('Dress Fitting')
                 ->setFrom('donaghy-e5@email.ulster.ac.uk', 'WeddingsNI-A-Z')
                 ->addMailHeader('Reply-To', 'donaghy-e5@email.ulster.ac.uk', 'Wedding Ni A-Z')
                 ->addMailHeader('Cc', 'donaghy-e5@email.ulster.ac.uk', 'WeddingNIA-Z')
                 ->addGenericHeader('Content-Type', 'text/html; charset="utf-8"')
                 ->setMessage($message)
                 ->setWrap(100)
                 ->send();
echo ($send) ? 'Your Email has been sent to your bridesmaids' : 'Could not send email';

0 个答案:

没有答案