简体   繁体   English

使用Raspberry Pi托管的apache2 / citadel服务器发送邮件

[英]Sending mail with a Raspberry Pi hosted apache2/citadel server

I have been running a web server off of my Raspberry Pi for a while now, getting to know HTML/CSS/JS/PHP. 我已经在Raspberry Pi上运行了一段时间的Web服务器,了解HTML / CSS / JS / PHP。 I wanted to learn how to send emails with the PHP mail() function from my website with a no-ip.com domain name. 我想学习如何使用no-ip.com域名从我的网站发送带有PHP mail()函数的电子邮件。 From my research, I realized that I needed to use SMTP, so I followed this tutorial to setup a citadel mail server in addition to apache2 on my Pi. 从我的研究中,我意识到我需要使用SMTP,因此我按照本教程设置了Pi上除了apache2之外的城堡邮件服务器。 I got it "up and running" and I am able to send mail to and from users on the Citadel server, but I am not able to send mail to and from my personal Gmail account. 我可以“启动并运行”它,并且可以与Citadel服务器上的用户进行邮件往来,但不能与个人Gmail帐户进行邮件往来。

If you are trying to send emails via smtp from google account you have to use googles paraneters for it, and for reciving emails from your host email to gmail well check your spam folder cos without proper registration of your emails domain name in mx record on dns server it will be concidered as spam by google. 如果您尝试通过smtp从Google帐户发送电子邮件,则必须使用google paraneters,并且要从主机电子邮件接收电子邮件到gmail,请检查垃圾邮件文件夹cos,而无需在dns上的MX记录中正确注册电子邮件域名服务器,它将被Google视为垃圾邮件。 Hope this helped. 希望这会有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM