B
Brian Rhiel
Hi,
I am attempting to setup my development environment to use gmail to send
e-mails.
I have the following in development.rb
config.action_mailer.raise_delivery_errors = true
config.action_mailer.perform_deliveries = true
config.action_mailer.delivery_method = :smtp
config.action_mailer.default_content_type = 'text/plain'
config.action_mailer.smtp_settings = {
:enable_starttls_auto => true,
:address => 'smpt.gmail.com',
ort => 587,
:authentication =>
lain,
:domain => 'myapp.com',
:user_name => '(e-mail address removed)',
assword => 'xxxxxx'
}
The Logs are displaying:
Sent mail to (e-mail address removed)
Date: Mon, 31 May 2010 13:37:49 -0500
From: (e-mail address removed)
To: (e-mail address removed)
Subject: Test
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary=mimepart_4c0401fdd548_c912d0e7101c8
--mimepart_4c0401fdd548_c912d0e7101c8
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: Quoted-printable
Content-Disposition: inline
Hello,
You are receiving this e-mail via Gmail.=
--mimepart_4c0401fdd548_c912d0e7101c8--
SocketError (getaddrinfo: nodename nor servname provided, or not known):
/usr/local/lib/ruby/1.8/net/smtp.rb:551:in `initialize'
/usr/local/lib/ruby/1.8/net/smtp.rb:551:in `open'
/usr/local/lib/ruby/1.8/net/smtp.rb:551:in `do_start'
/usr/local/lib/ruby/1.8/timeout.rb:62:in `timeout'
/usr/local/lib/ruby/1.8/timeout.rb:93:in `timeout'
/usr/local/lib/ruby/1.8/net/smtp.rb:551:in `do_start'
/usr/local/lib/ruby/1.8/net/smtp.rb:525:in `start'
app/controllers/listings_controller.rb:204:in `contact_client'
Rendered rescues/_trace (133.2ms)
Rendered rescues/_request_and_response (3.1ms)
Rendering rescues/layout (internal_server_error)
I am on a Mac with Leopard
I am using Rails version: 2.3.5
I am using Ruby version: 1.8.7
Does anybody know why I cannot send e-mails?
I am attempting to setup my development environment to use gmail to send
e-mails.
I have the following in development.rb
config.action_mailer.raise_delivery_errors = true
config.action_mailer.perform_deliveries = true
config.action_mailer.delivery_method = :smtp
config.action_mailer.default_content_type = 'text/plain'
config.action_mailer.smtp_settings = {
:enable_starttls_auto => true,
:address => 'smpt.gmail.com',
:authentication =>
:domain => 'myapp.com',
:user_name => '(e-mail address removed)',
}
The Logs are displaying:
Sent mail to (e-mail address removed)
Date: Mon, 31 May 2010 13:37:49 -0500
From: (e-mail address removed)
To: (e-mail address removed)
Subject: Test
Mime-Version: 1.0
Content-Type: multipart/alternative;
boundary=mimepart_4c0401fdd548_c912d0e7101c8
--mimepart_4c0401fdd548_c912d0e7101c8
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: Quoted-printable
Content-Disposition: inline
Hello,
You are receiving this e-mail via Gmail.=
--mimepart_4c0401fdd548_c912d0e7101c8--
SocketError (getaddrinfo: nodename nor servname provided, or not known):
/usr/local/lib/ruby/1.8/net/smtp.rb:551:in `initialize'
/usr/local/lib/ruby/1.8/net/smtp.rb:551:in `open'
/usr/local/lib/ruby/1.8/net/smtp.rb:551:in `do_start'
/usr/local/lib/ruby/1.8/timeout.rb:62:in `timeout'
/usr/local/lib/ruby/1.8/timeout.rb:93:in `timeout'
/usr/local/lib/ruby/1.8/net/smtp.rb:551:in `do_start'
/usr/local/lib/ruby/1.8/net/smtp.rb:525:in `start'
app/controllers/listings_controller.rb:204:in `contact_client'
Rendered rescues/_trace (133.2ms)
Rendered rescues/_request_and_response (3.1ms)
Rendering rescues/layout (internal_server_error)
I am on a Mac with Leopard
I am using Rails version: 2.3.5
I am using Ruby version: 1.8.7
Does anybody know why I cannot send e-mails?