user3468918
user3468918

Reputation: 1

Email is Not Sent using ruby on rails

its written in the console that the mail is sent but i cant find anything in the inbox.

    Sent mail to [email protected] (5.2ms)
Date: Thu, 27 Mar 2014 15:53:51 +0200
To: [email protected]
Message-ID: <[email protected]>
Subject: Request Accepted by the Carrier
Mime-Version: 1.0
Content-Type: text/plain;
 charset=UTF-8
Content-Transfer-Encoding: 7bit

NewsletterMailer#weekly

Hi, find me in app/views/app/views/newsletter_mailer/weekly.text.erb

=> #<Mail::Message:32171900, Multipart: false, Headers: <Date: Thu, 27 Mar 2014 15:53:51 +0200>, <To: [email protected]>, <Message-ID: <[email protected]>>, <Subject: Request Accepted by the Carrier>, <Mime-Version: 1.0>, <Content-Type: text/plain>, <Content-Transfer-Encoding: 7bit>>
irb(main):002:0> 

and here is the configuration :

    ShipmeProj::Application.configure do
  config.action_mailer.default_url_options = { host: "localhost:3000" }
  config.action_mailer.raise_delivery_errors = true
  config.action_mailer.delivery_method = :smtp
  config.action_mailer.smtp_settings = {
  address: "smtp.gmail.com",
  port: 587,
  domain: "localhost:3000",
  authentication: "plain",
  enable_starttls_auto: true,
  user_name: ENV["[email protected]"],
  password: ENV["xxxxx"]

Upvotes: 0

Views: 80

Answers (1)

sissy
sissy

Reputation: 2988

You're missing a config:

config.action_mailer.perform_deliveries = true  

Upvotes: 1

Related Questions