php - 通过 phpmailer 发送电子邮件(托管在 Google Apps 上的电子邮件地址)

标签 php google-apps phpmailer

我决定从 php mail() 类切换到 phpMailer。我还将我的电子邮件地址移至 Google Apps

我一直在查看 PHPMailer 示例 http://phpmailer.worxware.com/index.php?pg=examples但没有人指定 Google Apps 的设置。

我也尝试过此操作(但它使用 Gmail NOT Google Apps):Can't send an email using a google apps account with PHPMailer

有人实现过这个吗?

最佳答案

使用 GmailGoogle Apps 作为邮件主机的情况类似。答案在Can't send an email using a google apps account with PHPMailer演示如何将 Google AppsPHPMailer 结合使用。检查此页面:GMail and Google Apps as outgoing mail server (SMTP) .

关于php - 通过 phpmailer 发送电子邮件(托管在 Google Apps 上的电子邮件地址),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11796262/

相关文章:

google-api - 是否有适用于新 Google 表格(电子表格)的 API?

google-apps - Google Apps 管理员在我的收件箱中获取每封传入/传出邮件的副本

php - 使用 PHPMailer 从 G Suite 电子邮件别名发送邮件

php - Laravel 集合总是返回一个对象而不是数组

php - 谷歌分析 API : requestReportData by weeks instead of days?

php - Cakephp 数据库迁移有问题

javascript - 将 HTML 输入值传递给 jQuery 表单值

javascript - Google Apps 脚本中的条纹 HTML 标签

php - 为我的本地 Web 应用程序尝试访问 google.com 时出错

缺少 : openssl 的 PHPMailer 扩展