Configuring LAMP to Send Mails

匆匆过客 提交于 2020-01-06 12:42:31

问题


I have LAMP stack installed on VPS. Would like to send mails using PHP's internal mail() function.

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?

EDIT: I am on Ubuntu on Linode.

NOTE: This is not for spamming. Its meant for my side project.


回答1:


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 .




回答2:


depending upon your os Windows or *nix

configure your smtp service accordingly

This will help u



来源:https://stackoverflow.com/questions/8722941/configuring-lamp-to-send-mails

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!