Using GMail to send e-mail causing email

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’,
:port => 587,
:authentication => :plain,
:domain => ‘myapp.com’,
:user_name => ‘[email protected]’,
:password => ‘xxxxxx’
}

The Logs are displaying:

Sent mail to [email protected]

Date: Mon, 31 May 2010 13:37:49 -0500
From: [email protected]
To: [email protected]
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?

On Mon, May 31, 2010 at 11:47 AM, Brian R. [email protected]
wrote:

I am attempting to setup my development environment to use gmail…

I have the following in development.rb

config.action_mailer.smtp_settings = {
:address => ‘smpt.gmail.com’,
}

The Logs are displaying:

SocketError (getaddrinfo: nodename nor servname provided, or not known):

Does anybody know why I cannot send e-mails?

Because as the error message (somewhat obliquely) says, there is
no such host as ‘smpt.gmail.com’.

There is, however, a ‘smtp.gmail.com’ . :slight_smile:

HTH,