email - Set mailer "from" value to smth arbitrary in Rails -
my email address deliver messages noreply@domain.com, when send message with:
mail(:from=>'noreply@domain.com', :to=>"somebody@gmail.com", :subject=>"welcome!")
from field in gmail shows noreply, have tried using following:
mail(:from=>'domain', :to=>"somebody@gmail.com", :subject=>"welcome!", :return_path=>"noreply@domain.com", :reply_to=>"noreplay@domain.com")
above returns:
554 message refused.
all want from field saying "mydomain" or whatever. how do this?
thanks!
did try using
:from=>'mydomain <noreply@domain.com>'
if doesn't work add header key 'from' , value in following format:
from_name <from_email>
Comments
Post a Comment