问题描述
我对VPS安装LAMP堆栈。想使用PHP的内部邮件()函数来发送邮件。
I have LAMP stack installed on VPS. Would like to send mails using PHP's internal mail() function.
我有Fastmail帐户,并有自己的SMTP服务器证书。所以想利用它来进行邮件的目的,而不是设置一个我自己的。此外,应该有节流/队列的电子邮件的方法。
I have an account with Fastmail, and have credentials for their SMTP Server. So would like to use that for mailing purposes instead of setting one of my own. Additionally, there should be a way to throttle/queue the mails.
有人能指引我的方向,我应该从哪里开始?
Can someone guide me to the direction to where should I start?
编辑:我在Ubuntu上的Linode
I am on Ubuntu on Linode.
注意:这不是垃圾邮件。它意味着我身边的项目。
NOTE: This is not for spamming. Its meant for my side project.
推荐答案
使用PHP邮件类[]和只写简单的包装为queing任务,发送电子邮件设置电子邮件的凭据。
Use Php mailer class [ http://pear.php.net/package/Mail/ ] and just write simple wrapper for queing tasks,setting up email credentials for sending emails .
这篇关于配置LAMP发送邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!