【问题标题】:Sending email with 1and1 cloud server fails使用 1and1 云服务器发送电子邮件失败
【发布时间】:2018-05-22 06:03:31
【问题描述】:

我将使用 1and1 云服务器中的 ssmtp 发送电子邮件。发送电子邮件在 1and1 云服务器中不起作用,但它在我的本地主机 Windows 和我的 VMWare 的 linux 服务器中工作。谁能帮我?请任何人建议我一个解决方案。

root=XXXXXX@outlook.com
mailhub=smtp.live.com:587
hostname=localhost.localdomain
AuthUser=XXXXXX
AuthPass=**********
UseSTARTTLS=yes
FromLineOverride=yes

如何使用 1and1 云服务器发送邮件?

当前错误如下:

ssmtp:授权失败(535 5.7.3 Authentication unsuccessful [DM5PR03CA0053.namprd03.prod.outlook.com])

这是我的 1and1 云服务器截图。 https://i.stack.imgur.com/rjUvS.png

【问题讨论】:

    标签: node.js outlook sendmail ssmtp


    【解决方案1】:

    您可以使用 sendgrid 服务在 1and1 云服务器中发送电子邮件。 请检查此网址: https://sendgrid.com/docs/API_Reference/SMTP_API/getting_started_smtp.html

    之后,您可以使用 express-mailer 发送电子邮件,如下所示:

    mailer.extend(app, {
      from: 'Name<your email address>',
      host: 'smtp.sendgrid.net', // hostname 
      secureConnection: false, // use SSL 
      port: 587, // port for secure SMTP 
      transportMethod: 'SMTP', // default is SMTP. Accepts anything that nodemailer accepts 
      auth: {
        user: 'sendgrid ID',
        pass: 'sendgrid password'
      }
    });
    

    谢谢。任何时候你都可以使用它。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-08-02
      • 2015-06-23
      • 2011-05-18
      • 2014-12-18
      • 1970-01-01
      • 1970-01-01
      • 2014-05-20
      • 1970-01-01
      相关资源
      最近更新 更多