我正在嘗試創建一個電子郵件地址。我已將sendgrid插件添加到我的應用程序中。Heroku actionmailer如何
這裏是我的application.rb中
module Konkurranceportalen
class Application < Rails::Application
# Settings in config/environments/* take precedence over those specified here.
# Application configuration should go into files in config/initializers
# all .rb files in that directory are automatically loaded.
config.action_mailer.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
:address => "smtp.mydomain.com",
:port => 25,
:user_name => "[email protected]",
:password => "mypass",
:authentication => :login
}
end
end
問題是什麼?你沒有工作嗎?你有錯誤嗎? – 2011-04-13 08:18:36
當我嘗試在thunderbird上登錄併發送郵件到[email protected]時出現錯誤 – 2011-04-13 08:20:26
我應該使用sendgrids SMTP服務器還是使用Rails構建? – 2011-04-13 08:23:45