0
votes

I'm using Google Apps for my domain email and I noticed when I receive an email from my application It gives the email domain name instead of my apps name. For example in Gmail, users receive email from [email protected] and it shows:

Info    [email protected]

When I want it to show MyApp [email protected]

How would I change the google apps sender name?

Thank you.

2

2 Answers

1
votes

AFAIK, Gmail ( or Google Apps) does not let you alter your From name when relaying email. However, you might be able to go into your mail settings (log into the Google Apps info account) and change the name there.

1
votes

This actually can be managed inside of your application with Ruby on Rails. Not sure about Google Apps though. Anyways I got it working by putting inside of my user_mailer.rb:

class UserMailer < ActionMailer::Base
  default :from => "'MySite.com' <[email protected]>"
  def welcome_email(user)
    @user = user
    mail(:to => user.email, :subject => "Welcome to MySite")
  end
end