1
這是我第一個使用RefineryCMS的應用程序。過去我從應用程序發送郵件的方式目前不適用於我的煉油廠應用程序。SendGrid不會從默認的聯繫方式發送Heroku上的郵件
我已經嘗試了許多方式,通過在互聯網上的衆多搜索方式做到這一點,我無法做到這一點。
目前,這裏是我有:
在environment.rb
文件我有這樣的:
config.action_mailer.smtp_settings = {
:enable_starttls_auto => true,
:address => 'smtp.sendgrid.net',
:port => '25',
:authentication => :plain,
:user_name => '[email protected]',
:password => 'mypassword',
:domain => 'mydomain'
}
我也曾嘗試:
ActionMailer::Base.smtp_settings = {
:enable_starttls_auto => true,
:address => 'smtp.sendgrid.net',
:port => '25',
:authentication => :plain,
:user_name => '[email protected]',
:password => 'mypassword',
:domain => 'mydomain'
}
我試圖把這些設置在生產和發展班。嘗試本地和heroku,但我不能得到內置的查詢/聯繫表格發出通知郵件,我不知道爲什麼它不會工作。
就像我剛纔所說的,我已經嘗試了每個解決方案(他們都非常相似),我可以找到這個,但不能使其工作。如果有人能說出我做錯了什麼,確切地說,這是我需要做的,那真是太棒了。
由於提前, 〜麥克
除了你的第二次嘗試,你把:ActionMailer :: Base.delivery_method =:smtp ActionMailer :: Base.perform_deliveries = true – apneadiving 2011-02-06 22:52:14