I am trying to get my slicehost/Rails/radiant/nginx/mongrel site to work
with the Radiant extension Mailer and smtp.gmail.com
I have the openrain-action_mailer_tls (1.1.3) gem installed.
I have google accounts eMail set up that I can log into so I believe the
user/domain is valid.
I am not sure if I am having a radiant problem or a gMail problem.
Here is the production log…
Processing MailController#create (for 74.184.148.126 at 2009-03-28
17:09:47) [POST] Session ID:
BAh7CToMY3NyZl9pZCIlNzU0MzkzNjgzMjQ2MTE0ZmY0MTRiZjBmZTk0NDZj
NWM6DnJldHVybl90bzAiDHVzZXJfaWRpBiIKZmxhc2hJQzonQWN0aW9uQ29u
dHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsGOgtub3RpY2UiJFlvdXIgcGFn
ZSBoYXMgYmVlbiBzYXZlZCBiZWxvdy4GOgpAdXNlZHsGOwhU—26c3f68aca424118bc2aeba2085e34d1e4254765
Parameters: {“actionâ€=>“createâ€, “page_idâ€=>“33â€,
“mailerâ€=>{“messageâ€=>“asdasf asfasdf asdasdf asdfasdf asdasdf “,
“nameâ€=>“Bartee L.â€, “subjectâ€=>“this is the subject lineâ€,
“emailâ€=>“[email protected]â€}, “controllerâ€=>“mailâ€}
Sent mail to [email protected], [email protected]
On my dev machine in development mode, it shows the actual eMail
content.
On the slicehost production machine ( as shown above ) it does not.
I required smtp_tls in the config/environment.rb file
I have have this in the config/environment.rb file
ResponseCache.defaults[:directory] =
ActionController::Base.page_cache_directory
ResponseCache.defaults[:logger] = ActionController::Base.logger
ActionMailer::Base.smtp_settings = { :address => “smtp.gmail.comâ€,
:port => “587â€, :domain => “zzzzzz.comâ€, :user_name =>
“[email protected]â€, :password => “xxxxxxxâ€, :authentication => :plain }
end
config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
config.action_mailer.default_charset = ‘utf-8’
end
I am new to this, but have figured out a lot of stuff so far, but I am
baffeled with this….
So any help would be appreciated…