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