如何从PHP脚本发送邮件! [英] How to send mail from php script !

查看:82
本文介绍了如何从PHP脚本发送邮件!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从php发送邮件?哪个是php平台最好的邮件服务器?

How do i send mail from php? and which the best email server for php platform?

推荐答案

PHP不关心邮件服务器。它甚至不关心?如果连接失败。


通过PHP发送电子邮件,我推荐 SwiftMailer 库。
PHP does not care about the mail server. it wouldn?t even ?care? if the connection failed.

sending emails by means of PHP, I recommend the SwiftMailer library.


但是使用SwiftMailer的步骤是什么?请给出一些代码示例?
But what are the steps for using SwiftMailer ? please give some code example ?


我不需要提供代码示例,因为SwiftMailer文档已经这样做了。
I don’t need to give a code example, because the SwiftMailer documentation is doing this already.


这篇关于如何从PHP脚本发送邮件!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆