Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5949403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:14:41+00:00 2026-05-22T17:14:41+00:00

Good afternoon, I’m facing a problem about the way to send email through my

  • 0

Good afternoon,

I’m facing a problem about the way to send email through my application hosted on hostingrails.

In my config/initializers I added a file “setup_mailer” containing this

ActionMailer::Base.delivery_method = :sendmail  
ActionMailer::Base.perform_deliveries = true  
ActionMailer::Base.raise_delivery_errors = true
ActionMailer::Base.default_charset = "utf-8"

# Production
if Rails.env.production?
    ActionMailer::Base.sendmail_settings = {
        :location => '/usr/sbin/sendmail',
        :arguments => '-i -t -f support@xxxxx.xxx'
    }
end

and my mailer is as below

class Notification < ActionMailer::Base

def subscription_confirmation(user)
    setup_email(user)
    mail(:to => @recipients, :subject => "blabla")
end

protected

    def setup_email(user)
        @recipients = user.email
        @from = "support@xxxxx.xx"
        headers "Reply-to" => "support@xxxxx.xx"
        @sent_on      = Time.now
        @content_type = "text/html"
    end

end

It seems to work very fine on my local machine. But in production, emails are not sent properly and I receive this message in my support inbox.

A message that you sent using the -t command line option contained no
addresses that were not also on the command line, and were therefore
suppressed. This left no recipient addresses, and so no delivery could
be attempted.

If you have any idea, the support seems cannot help me, hope some of you’ll have ideas or config files from hostingrails to share.

Thank you,
albandiguer

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T17:14:42+00:00Added an answer on May 22, 2026 at 5:14 pm

    I had exactly the same problem – resolved it by removing the -t from the sendmail_settings.

    I haven’t looked much further to investigate other implications, but at least it works. But from the man page:

       -t     Extract recipients from message headers. These are added to  any
              recipients specified on the command line.
    
          With Postfix versions prior to 2.1, this option requires that no
          recipient addresses are specified on the command line.
    

    So maybe just a difference in Postfix versions?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Good afternoon, I would ask some suggestion about the best way to monitor events
Good afternoon, I'm having a problem with a section of code I'm working on
Good afternoon, I am currently starting to think & prototype about a (.net based)
Good afternoon, I'm learning about using RegEx's in Ruby, and have hit a point
Good afternoon I'm facing a trouble, trying to figure out how to use this
Good afternoon I would just like to know the easiest way for standard Console
Good afternoon Would just like to know what the easiest way would be of
Good afternoon I'm in the search of a solid way to determine if an
Good afternoon, I am running into a curious problem with WCF and IntelliTrace. I
Good afternoon, I am currently in the very early phase of a new project

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.