How can i send email with ruby on rails 3.1 ?

I have installed sendmail .

I have read this => Action Mailer Basics — Ruby on Rails Guides

I need to do =>

rails generate mailer UserMailer

app/mailers/user_mailer.rb =>

class UserMailer < ActionMailer::Base   default :from => "notifications@example.com"

  def welcome_email(user)     @user = user     @url = "http://example.com/login&quot;     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 abc@anydomain.com.

How can i do this ?

It will be helpful if someone can reply with explaination ?

Form: ist whatever email you want it to be… the from field is the senders address. So it could be you address or no-reply@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.

gvhghgfhfghfghfhg

Attachments: http://www.ruby-forum.com/attachment/7849/bbbbbbbappyjpg12.jpg