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 3987760
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:10:19+00:00 2026-05-20T06:10:19+00:00

so heres my info to start config/initializers/mailer.rb ActionMailer::Base.smtp_settings = { :address => smtp.gmail.com, :port

  • 0

so heres my info to start

config/initializers/mailer.rb

ActionMailer::Base.smtp_settings = {  
  :address              => "smtp.gmail.com",  
  :port                 => 587,  
  :domain               => "mydomain.com",  
  :user_name            => "myUser",  
  :password             => "secret",  
  :authentication       => "plain",  
  :enable_starttls_auto => true  
}

ActionMailer::Base.delivery_method = :smtp

app/mailers/notifier.rb

class Notifier < ActionMailer::Base
  default :from => "My Company <info@mydomain.com>"

   def contact_notification(sender)
     @sender = sender
     mail(
         :to => "info@mydomain",
         :from => sender.email,
         :subject => "Message from #{sender.fullName} on Mydomain.com")
   end
end

My issue, whenever the emails get sent to me they show the smtp account as the from header email address instead of the senders email. So I can’t just hit reply to reply to the senders email account.

Any Help would be appreciated.

Up-Date

With the the insite given I found a way to set the Reply-to email Header which did the trick.

Instead of using:

:from => sender.email,

I used

:reply_to => sender.email,

Hope this helps anyone else out there.

  • 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-20T06:10:19+00:00Added an answer on May 20, 2026 at 6:10 am

    This seems specific to the gmail SMTP server see the information here:

    http://mail.google.com/support/bin/answer.py?hl=en&answer=22370

    This is the applicable section:

    Note for IMAP/POP users: If you access Gmail through a POP or IMAP email client (e.g. Outlook) and would like to send messages with a custom “from” address, you have two options. We recommend that you configure your email client with two outgoing SMTP servers, one for Gmail and one for your other address. Your second option is to use Gmail’s outbound servers with a different “from” address. If you’ve already configured the custom from address in the web interface, your message will be sent from:otheraddress@domain.com, sender:username@gmail.com, regardless of which custom from configuration you chose. Your messages will be sent from your regular Gmail address if you never configured your custom from settings in the web interface.

    Other than setting that in the web interface for gmail as it suggests, have you tried the Reply-To header? That might work

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

Sidebar

Related Questions

Here is some info of the cardiograph app if you dont know it: http://www.spotlightofpeace.com/techarea/photos/cardiograph-application-to-measure-heartbeat-from-iphone-and-ipad-camera/
alt text http://img24.imageshack.us/img24/3365/sqlnuts.jpg well heres the code public void select_table_names() {//start /* display all
I'm using Infostrat's WPF wrapper for the Bing maps 3d control (blog here http://blogs.msdn.com/virtualearth3d/
Here's the scenario. When a user's login info is submitted, activityIndicator view is shown.
I want to do like this : http://ajaxload.info/ here is my code: <!DOCTYPE html>
I have a MySQL/Rails app that needs search. Here's some info about the data:
For more info, see my other question, here . So anyway, I'm using BigDecimals
I'm traying to extract info from a table made in xml, here is an
I would really like some advice here, to give some background info I am
We have a Union Query. Here's a basic (similar) example: SELECT a.Name, b.Info FROM

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.