using GMail to send e-mail causing email

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',
:port => 587,
:authentication => :plain,
:domain => 'myapp.com',
:user_name => '(e-mail address removed)',
:password => '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?
 
H

Hassan Schroeder

I am attempting to setup my development environment to use gmail...
I have the following in development.rb
config.action_mailer.smtp_settings =3D {
=A0:address =3D> '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' . :)

HTH,
--=20
Hassan Schroeder ------------------------ (e-mail address removed)
twitter: @hassan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top