Bartosz Blimke RSS

Archive

Aug
1st
Fri
permalink

How to setup God to send email notifications using Gmail

Here is, how to setup God to send email notifications using a Gmail account.

Step 1:

gem install tlsmail

Step 2:

Modify the following code and add it to your God config

—-

require ‘tlsmail’
Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE)

God::Contacts::Email.message_settings = {:from => ‘my_user@gmail.com’}

God::Contacts::Email.server_settings = {
:address => “smtp.gmail.com”,
:port => 587,
:user_name => “my_user@gmail.com”,
:password => “password”,
:authentication => :plain

}

—-