Skip to content

Instantly share code, notes, and snippets.

@hardbap
Created October 19, 2008 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hardbap/17866 to your computer and use it in GitHub Desktop.
Save hardbap/17866 to your computer and use it in GitHub Desktop.
# http://pastie.org/250821
require 'tlsmail'
Net::SMTP.enable_tls(OpenSSL::SSL::VERIFY_NONE)
God::Contacts::Email.message_settings = {
:from => 'admin@mydomain.com'
}
God::Contacts::Email.server_settings = {
:address => 'smtp.gmail.com',
:tls => 'true',
:port => 587,
:domain => 'mydomain.com',
:authentication => :plain,
:user_name => 'admin@mydomain.com',
:password => '********'
}
God.contact(:email) do |c|
c.name = 'user'
c.email = 'user@mydomain.com'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment