简体   繁体   English

使用不带自定义域的AWS SES发送电子邮件

[英]Sending email with AWS SES without custom domain

I would like to send email from a Rails 5.1 app with AWS SES through smtp, but without using a custom domain (it's ok if users receive emails with an address from aws). 我想通过smtp从带有AWS SES的Rails 5.1应用程序发送电子邮件,但不使用自定义域(如果用户从aws接收带有地址的电子邮件就可以了)。 But when searching through AWS documentation or google, I can only find instructions to use custom domains. 但是在搜索AWS文档或Google时,我只能找到使用自定义域的说明。

Is it possible? 可能吗? And if yes, what email address (mail FROM) should be used to replace the placeholder in config/initializers/devise.rb : 如果是,则应使用什么电子邮件地址(邮件FROM)替换config/initializers/devise.rb的占位符:

config.mailer_sender = 'please-change-me-at-config-initializers-devise@example.com'

?

You don't need to have a custom domain, but you do need to have at least an email address you can verify following the procedure outlined in https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-email-addresses.html 您不需要自定义域,但至少需要有一个电子邮件地址,您可以按照https://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify- email-addresses.html

AWS doesn't have "default" email addresses to use for sending mails. AWS没有用于发送邮件的“默认”电子邮件地址。 Note also, that SES require you to handle bounces and such. 另请注意,SES要求您处理反弹等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM