From: Brian Rhiel Date: 2010-06-01T03:47:22+09:00 Subject: 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 => 'xxxxxx@gmail.com', :password => 'xxxxxx' } The Logs are displaying: Sent mail to xxxxxx@gmail.com Date: Mon, 31 May 2010 13:37:49 -0500 From: xxxxxx@gmail.com To: xxxxxx@gmail.com 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? -- Posted via http://www.ruby-forum.com/.