在 Windows Azure 中来自 PHP 的电子邮件

2022-01-23 00:00:00 email azure gmail php

如何在 Windows Azure 环境中发送带有 PHP 附件的电子邮件(gmail?).

How can send e-mail (gmail ?) with attachments from PHP in Windows Azure enviroment.

推荐答案

这篇博文表明 Windows Azure 不附带 SMTP 服务器.

This blog post suggests that Windows Azure does not come with an SMTP server.

这意味着您需要使用可用的第三方 SMTP 服务器来发送邮件.Gmail可能适合您.这似乎是 Gmail 的 SMTP 服务器信息.

This means that you will need to use an available third party SMTP server to send mail. Gmail might work for you. This seems to be Gmail's SMTP server information.

SwiftMailer 是这里经常推荐的邮件库之一.它提供连接到经过身份验证的 SMTP 服务器的能力,并具有全面的附件支持.

SwiftMailer is one of the mailing libraries that is recommended frequently here. It provides the ability to connect to authenticated SMTP servers and has comprehensive attachment support.

相关文章