Note that there are some explanatory texts on larger screens.

plurals
  1. PODebugging Actionmailer
    primarykey
    data
    text
    <p>I have actionmailer set up. Emails are not being sent, and no errors.</p> <p>Where can I start my search to debug this?</p> <pre><code>class Notifier &lt; ActionMailer::Base default_url_options[:host] = APP_DOMAIN def email_blast(user, subject, message) subject subject from NOTIFIER_EMAIL recipients user.email sent_on Time.zone.now body :user =&gt; user.first_name + ' ' + user.last_name, :message =&gt; message end </code></pre> <p>I do get a return in my log that the email was sent, just no actual email goes through.</p> <p>Also the reason, that this is not working is because I switched form a cluster to a solo box and some server settings were overwritten. I suspect that is probably the reason why this is not working. Anyone know what specific server settings I would have to look at ?</p> <p>UPDATE:</p> <pre><code>ActionMailer::Base.delivery_method = :sendmail config.action_mailer.default_url_options = { :host =&gt; "75.101.153.93" } </code></pre> <p>I found this in my production.rb . This code was originally here when it worked. Again, I believe that there must be something missing on my server..I did a 'which sendmail' and it returned /usr/bin/sendmail , so I added this :</p> <pre><code>config.action_mailer.raise_delivery_errors = false config.action_mailer.perform_deliveries = true config.action_mailer.sendmail_settings = { :location =&gt; '/usr/bin/sendmail', :arguments =&gt; '-i -t' } </code></pre> <p>Redeployed, restarted the server, and tested it. No emails were sent. </p> <p>The production.log said something was sent :</p> <pre><code>Processing MediaController#create_a_video (for 173.161.167.41 at 2010-06-03 11:58:13) [GET] Parameters: {"action"=&gt;"create_a_video", "controller"=&gt;"media", "organization_id"=&gt;"470", "_"=&gt;"1275591493194"} Sent mail to info@hqchannel.com Rendering media/create_a_video Completed in 128ms (View: 51, DB: 1) | 200 OK [http://invent.hqchannel.com/organizations/470/media/create_a_video?_=1275591493194] </code></pre>
    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