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

  • Home
  • SEARCH
  • 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 193367
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:30:16+00:00 2026-05-11T16:30:16+00:00

in my ActionMailer config file I have this: ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.smtp_settings = {

  • 0

in my ActionMailer config file I have this:

ActionMailer::Base.delivery_method = :smtp
ActionMailer::Base.smtp_settings = {
  :address => "mail.foo.com",
  :port => 25,
  :domain => "foo.com",
  :authentication => :email,
  :user_name => "no-reply@foo.com",
  :password => "foo1234567"
}

With this configuration can I only send out email from the no-reply@foo.com email address? If so is there a way to send out emails from other addresses? I have this in my ActionMailer class:

class Notifications < ActionMailer::Base

  def answered_question(faq)
    subject       'Your question has been answered'
    recipients    faq.email
    from          'Foo <no-reply@foo.com>'
    sent_on       Time.now
    content_type  "text/html"
    body          :faq => faq
  end


  def completed_order(order)
    subject        'Your order has been completed'
    recipients     order.email                                       
    from           'Foo <registrations@foo.com>'
    sent_on        Time.now
    content_type   "text/html"
    body           :order => order
  end
end

In development everything works out fine but in production the completed_order emails are not being sent out.

Thanks.

  • 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-11T16:30:16+00:00Added an answer on May 11, 2026 at 4:30 pm

    I would guess that this is more of a SMTP issue that it is ActionMailer. Some SMTP’s do not require Username/Passwords to send outgoing mail and so you can set the From address as you like.

    That said, since you’re experiencing issues sending out messages that have a From address different from what you’re using to authenticate to your SMTP server, I’d guess there’s a restriction on the SMTP box that only allows messages to be sent if the From address matches the authenticating UID.

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

Sidebar

Related Questions

How do I set up the email notification with CruiseControl.rb? I've specified the ActionMailer::Base.smtp_settings
I need help with e-mail templates. I have an html template with three embedded
Have an app that has listings - think classified ads - and each listing
I specified the default_url_options in my environments/test.rb with config.action_mailer.default_url_options = { :host => www.xyu.at
Am I crazy, or is it a bad idea to keep my SMTP username
I'm trying to work on a Rails site here in it's development environment, where
I'm trying to work out why when working on a 404 page on a
I'm working on a fairly traditional forgot password email - I want to email
I'm busy creating a very simplistic ruby on rails app that won't need a

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.