ruby on rails - How can I change the header info of "from"? when using ActionMailer? -


i'm using actionmailer. it's working fine.
but, i've noticed owner stated in header of email sent.

just this

received: (from ftpuser@localhost) 

what reffered to?
indeed, of rails files's ftpuser , rest root.
how should be?

this example , hope help, in app/mailers/notifications_mailer.rb can set default email address.

class notificationsmailer < actionmailer::base    default :from => "noreply@yourdomain.net"   default :to => "info@yourdomain.net"    def new_message(message)     @message = message     mail(:subject => "[message confirmation] #{message.subject}")   end  end 

also check config/environments directory. mailers can configured there.


Comments

Popular posts from this blog

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -