Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Rails 3 + sendmail with ssmtp = "recipients with -t option not supported"

#6156

Another fun experience after upgrading to Rails 3. :)

production.rb
config.action_mailer.delivery_method = :sendmail

Using sendmail through ssmtp with sendgrid. Everything worked dandy with Rails 2.3.5. After upgrading to 3.0.3, I received the error "recipients with -t option not supported" whenever trying to deliver email.

Upon researching the issue, I found a manual solution:

production.rb
config.action_mailer.sendmail_settings = {:arguments => '-i'}

So yes, it's resolved. But should the default sendmail settings be modified? Cheers.

Reported by Yuval Kordov · December 13th, 2010 @ 03:04 AM

State: stale
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Yuval Kordov
    Yuval Kordov
    • Tag changed from rails 3.0.3, sendmail ssmtp action_mailer to rails 3.0.3, actionmailer, action_mailer, sendmail, ssmtp

    December 13th, 2010 @ 03:04 AM

  2. Marcin Kulik
    Marcin Kulik

    I just had the exact same issue. Overriding sendmail settings resolved it.

    @Yukal: Is this a problem with ssmtp? If it's not fully compatible with sendmail/postfix then we shouldn't handle that problem in Rails.

    January 14th, 2011 @ 11:21 AM

  3. Yuval Kordov
    Yuval Kordov

    Never had time to investigate this issue past getting it running, so not sure.

    January 15th, 2011 @ 10:40 PM

  4. Jose Granado
    Jose Granado

    Hi, I have the same issue. I'm not sure about the ssmtp part though.
    I'm on Rails 3.0.0 on a shared server and using sendmail.

    After a while I managed to get some email sent properly by using the next on my initializers/mail.rb:


    ActionMailer::Base.delivery_method = :sendmail
    ActionMailer::Base.sendmail_settings = {
    :location => '/usr/sbin/sendmail', :arguments => '-i' }

    Cheers.

    January 16th, 2011 @ 08:20 PM

  5. rails
    rails
    • Tag changed from rails 3.0.3, actionmailer, action_mailer, sendmail, ssmtp to rails 303, actionmailer, action_mailer, sendmail, ssmtp
    • State changed from new to open

    This issue has been automatically marked as stale because it has not been commented on for at least three months.

    The resources of the Rails core team are limited, and so we are asking for your help. If you can still reproduce this error on the 3-0-stable branch or on master, please reply with all of the information you have about it and add "[state:open]" to your comment. This will reopen the ticket for review. Likewise, if you feel that this is a very important feature for Rails to include, please reply with your explanation so we can consider it.

    Thank you for all your contributions, and we hope you will understand this step to focus our efforts where they are most helpful.

    April 19th, 2011 @ 01:00 AM

  6. rails
    rails
    • State changed from open to stale

    April 19th, 2011 @ 01:00 AM