title: Ruby on Rails Devise not sending email confirmation, Mailer
body: <p>I hope all is well. I have been trying to set up email confirmation for the past 3 days, I cant make it work. This doesnt send email. Any idea what I'm missing? thank you tons!</p>
  <p>Btw I tried both Gmail and Sendgrid. Either of them was able to send email.</p>
  <hr />
  <p>user.rb</p>
  <pre><code>  devise :database_authenticatable, :confirmable, :registerable, :recoverable, :rememberable, :trackable, :validatable
  </code></pre>
  <hr />
  <p>devise.rb</p>
  <pre><code>config.mailer_sender = 'myemail@gmail.com'
  config.mailer = 'Devise::Mailer'
  config.reconfirmable = false
  </code></pre>
  <hr />
  <p>development.rb</p>
  <pre><code>  # Email
    config.action_mailer.raise_delivery_errors = false
    config.action_mailer.perform_caching = false
    config.action_mailer.default_url_options = { :host =&gt; 'localhost:3000' }
    config.action_mailer.delivery_method = :smtp
    ActionMailer::Base.smtp_settings = {
      :address              =&gt; &quot;smtp.gmail.com&quot;,
      :port                 =&gt; 587,
      :domain               =&gt; &quot;gmail.com&quot;,
      :user_name            =&gt; &quot;myemail@gmail.com&quot;,
      :password             =&gt; &quot;mypassword&quot;,
      :authentication       =&gt; &quot;plain&quot;,
      :ssl                  =&gt; true,
      :tsl                  =&gt; true,
      :enable_starttls_auto =&gt; true
    }
  </code></pre>
  <hr />
  <p>schema.rb</p>
  <pre><code>  create_table &quot;users&quot;, force: :cascade do |t|
      t.string &quot;email&quot;, default: &quot;&quot;, null: false
      t.string &quot;confirmation_token&quot;
      t.datetime &quot;confirmed_at&quot;
      t.datetime &quot;confirmation_sent_at&quot;
      t.string &quot;unconfirmed_email&quot;
      ....
  </code></pre>