1

I'm using Spree to develop an E-commerce. I was using part this tutorial to send emails using ActionMailer, but I can't make it work.

My controller

 UserMailer.sign_up_confirmation(spree_current_user).deliver

My develpment.rb

ActionMailer::Base.perform_deliveries = true
  ActionMailer::Base.delivery_method = :smtp
  ActionMailer::Base.smtp_settings = {
      address: 'smtp.gmail.com',
      port: 587,
      user_name: ENV['gmail_username'],
      password: ENV['gmail_password'],
      authentication: 'plain',
      enable_starttls_auto: true
  }

There is no error in the console and the mail it seems to be delivered right, but there is no email on my gmail account. I used this code in a previous project and worked fine. So, is Spree doing something to my email delivering?

exsnake
  • 1,767
  • 2
  • 23
  • 44

0 Answers0