我想使用 Sendinblue 通过 SMTP 从我的 Ruby on Rails Web 应用程序发送交易电子邮件。我编辑config/environments/production.rb
如下:
ActionMailer::Base.smtp_settings = {
:address => 'smtp-relay.sendinblue.com',
:port => '587',
:authentication => :plain,
:user_name => ???,
:password => ???,
:domain => 'fireworks.com',
:enable_starttls_auto => true
}
我应该使用什么作为user_name
and password
?我的帐户的用户名和密码或我的 SMTP 密钥?另外,我是否需要使用任何 gem,比如sib-api-v3-sdk
,或者这个 gem 仅对使用 Sendinblue API 发送电子邮件有用?