简单的PHP邮件功能不工作在Amazon EC2服务器邮件、简单、功能、服务器

由网友(暖风凉心i)分享简介:请参阅此code <?php$to = "someone@example.com";$subject = "Test mail";$message = "Hello! This is a simple email message.";$from = "someonelse@example.com";$hea...

请参阅此code

<?php
$to = "someone@example.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "someonelse@example.com";
$headers = "From:" . $from;
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?> 

什么是这个code中的问题。它不工作亚马逊Linux服务器

what is the problem in this code . Its not working on Amazon Linux server

感谢

推荐答案

你是否愿意使用其他邮件框架?如果是的话,你可以用PHPMailer的...它为我工作正常。

are you willing to use other mailing framework? If yes, you can use phpmailer...it works fine for me.

这里是他们的网站的链接。 http://phpmailer.worxware.com/

here is the link on their site. http://phpmailer.worxware.com/

阅读全文

相关推荐

最新文章