Sending Email with Gmail Rails 3

I am trying to send an email through my gmail account. I copied the code directly from the rail guide, and in my terminal he said that he was sending a message, but he was not receiving the address that I was sending. Here is the code I have in the env.rb file

config.action_mailer.deconfig.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
  :address              => "smtp.gmail.com",
  :port                 => 587,
  :domain               => 'derp'
  :user_name            => 'derp.bot',
  :password             => 'derp42069',
  :authentication       => 'plain',
  :enable_starttls_auto => true  }

In the terminal, I get the following message:

Sent mail to derpviolin@gmail.com (20ms)
Date: Wed, 16 Feb 2011 23:09:54 -0800
From: derp.bot@gmail.com
To: derpviolin@gmail.com
Message-ID: <4d5cc9c2d6448_f88819dd6287289@dn0a203255.sunet.mail>
Subject: New Task
Mime-Version: 1.0
Content-Type: text/html;
 charset=UTF-8
Content-Transfer-Encoding: 7bit

you suck
Rendered need_router/index.html.erb within layouts/application (2.1ms)
Completed 200 OK in 371ms (Views: 8.3ms)

However, the letter I am sending does not receive the message. Any help would be greatly appreciated.

+5
source share
1 answer

See here for an answer to a similar problem.

+3
source

All Articles