[英]AWS - PHP form to send email - doesn't send email to same domain
I have my website hosted on Amazon Web Services EC2, I have created a php form to send email, I have successfully validated my email address using Amazon SES and this is the problem: 我的网站托管在Amazon Web Services EC2上,我创建了一个php表单来发送电子邮件,我已经使用Amazon SES成功验证了我的电子邮件地址,这就是问题所在:
I read on this page ( Can't receive mail from a Web Form ) that there could be a problem with same domain configuration. 我在此页面上阅读( 无法从Web表单接收邮件 ),说相同的域配置可能存在问题。
Does anyone know how can I fix this? 有谁知道我该如何解决? Thank you very much
非常感谢你
I fixed the problem using the following code: https://stackoverflow.com/a/23002849/4063626 我使用以下代码解决了问题: https : //stackoverflow.com/a/23002849/4063626
and including: 并包括:
class.phpmailer.php: https://github.com/PHPMailer/PHPMailer/blob/master/class.phpmailer.php class.smtp.php: https://github.com/PHPMailer/PHPMailer/blob/master/class.smtp.php class.phpmailer.php: https : //github.com/PHPMailer/PHPMailer/blob/master/class.phpmailer.php class.smtp.php: https : //github.com/PHPMailer/PHPMailer/blob/master/class .smtp.php
Thanks 谢谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.