I have installed sendmail . I have read this => http://guides.rubyonrails.org/action_mailer_basics.html I need to do => rails generate mailer UserMailer app/mailers/user_mailer.rb => class UserMailer < ActionMailer::Base default :from => "email@example.com" def welcome_email(user) @user = user @url = "http://example.com/login" mail(:to => user.email, :subject => "Welcome to My Awesome Site") end end What will be the email address of :from => .. ? I need to send email to @yahoo.com, @gmail.com and in any domain like firstname.lastname@example.org. How can i do this ? It will be helpful if someone can reply with explaination ?
on 2011-10-09 10:24
on 2011-10-09 10:59
Form: ist whatever email you want it to be... the from field is the senders address. So it could be you address or email@example.com or similar. But it would be good advise if you ensure ownership over the used domain or at least the used email address. -- send by Samsung Galaxy Tab with Overcome Mod Am 09.10.2011 10:22 schrieb "gmsfirst gmsfirst" <firstname.lastname@example.org>:
on 2012-11-02 15:20
How Can i send mail in ruby on rails my version is of ruby on rails is 3.2.8