SES是从Lambda发送电子邮件的唯一方法吗? [英] Is SES the only way to send email from Lambda?

查看:112
本文介绍了SES是从Lambda发送电子邮件的唯一方法吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用公司的Mailhost向内部邮件组发送电子邮件,但无法发送电子邮件. 它引发如下异常:

I am trying to use my company's mailhost for sending email to internal mail groups but I am unable to send an email. It throws exception as below:

"javax.mail.MessagingException: 501 5.0.0 HELO requires domain address
at com.sun.mail.smtp.SMTPTransport.issueCommand(SMTPTransport.java:1363)"

这是一个限制,还是我仅需要使用SES来发送电子邮件?

Is it a limitation or I need to use SES only for sending emails?

  • 是否需要做任何配置,而我可能错过了?
  • 是否可以在VPC中检查端口是否打开? 我应该使用端口号25还是587?
  • 如果将VPC分配给我的lambda会有所帮助吗?
  • Is there any configuration that I need to do and I might have missed?
  • Anything to check in VPC if the ports are open? Should I use port number as 25 or 587?
  • Will it help if I assign the VPC to my lambda?

更多详细信息: 1)我希望使电子邮件比SNS更具可读性

More details: 1) I am looking to make an email message more readable than what comes from SNS

谢谢!

推荐答案

我从将解决此问题的主要属性是props.put("mail.smtp.localhost",smtpHost);

The main property that will fix this issue is props.put("mail.smtp.localhost", smtpHost);

希望这会对某人有所帮助.

Hope this will help someone.

谢谢!

这篇关于SES是从Lambda发送电子邮件的唯一方法吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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