Note that there are some explanatory texts on larger screens.

plurals
  1. POHeroku Mailer suddenly not working after switching to custom domain
    primarykey
    data
    text
    <p>I have a live app (livebytransit.com) and I recently switched to a custom domain instead of simply forwarding with cloaking. The domain is with Godaddy. Everything is looking good, except for my mailers no longer work!</p> <p>Here is the error from heroku logs:</p> <pre><code>2012-01-03T22:36:17+00:00 app[web.1]: Rendered showing_mailer/showing_request.html.erb (0.5ms) 2012-01-03T22:36:17+00:00 app[web.1]: 2012-01-03T22:36:17+00:00 app[web.1]: Sent mail to info@livebytransit.com (213ms) 2012-01-03T22:36:17+00:00 app[web.1]: Completed 500 Internal Server Error in 242ms 2012-01-03T22:36:17+00:00 app[web.1]: EOFError (end of file reached): 2012-01-03T22:36:17+00:00 app[web.1]: app/controllers/showings_controller.rb:12:in `create' </code></pre> <p>From my production.rb config file:</p> <pre><code>config.action_mailer.raise_delivery_errors = true config.action_mailer.delivery_method = :smtp </code></pre> <p>Initializer:</p> <pre><code>ActionMailer::Base.smtp_settings = { :address =&gt; "smtpout.secureserver.net", :port =&gt; 25, :user_name =&gt; "username", :password =&gt; "password", :authentication =&gt; :login } </code></pre> <p>Mailer:</p> <pre><code>class InviteeMailer &lt; ActionMailer::Base default from: "admin@livebytransit.com" def send_invite(invitee) @invitee = invitee mail(:to =&gt; @invitee.email, :subject =&gt; "You have been Invited") end end </code></pre> <p>Finally the controller:</p> <pre><code>def create @invitee = Invitee.new @invitee.email = (params[:email]) @invitee.user_id = session[:user_id] @invitee.save InviteeMailer.send_invite(@invitee).deliver redirect_to user_url(session[:user_id]), :notice =&gt; "Invitation Sent, thank you!" end </code></pre> <p>The invitee is getting saved, but the mail does not go due to EOFError. This smells like a configuration problem to me, but I can't seem to figure it out, any thoughts would be mucho appreciated! Again, the mailer was working just fine until I switched to the custom domain.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload