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

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

java - More than one row with the given identifier was found: 1, for class: com.model.Diagnosis -