This project is archived and is in readonly mode.

#6156 ✓stale
Yuval Kordov

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

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

Another fun experience after upgrading to Rails 3. :)

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:

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

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

Comments and changes to this ticket

  • Yuval Kordov

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

    • Tag changed from rails 3.0.3, sendmail ssmtp action_mailer to rails 3.0.3, actionmailer, action_mailer, sendmail, ssmtp
  • Marcin Kulik

    Marcin Kulik January 14th, 2011 @ 11:21 AM

    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.

  • Yuval Kordov

    Yuval Kordov January 15th, 2011 @ 10:40 PM

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

  • Jose Granado

    Jose Granado January 16th, 2011 @ 08:20 PM

    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' }


  • rails

    rails April 19th, 2011 @ 01:00 AM

    • 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.

  • rails

    rails April 19th, 2011 @ 01:00 AM

    • State changed from “open” to “stale”

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>