Forum: Ruby on Rails How can i send email with ruby on rails 3.1 ?

A1c1979552bd382c651cc21cf0fb2d18?d=identicon&s=25 gmsfirst gmsfirst (Guest)
on 2011-10-09 10:24
(Received via mailing list)
I have installed sendmail .

I have read this =>

I need to do =>

rails generate mailer UserMailer

app/mailers/user_mailer.rb =>

class UserMailer < ActionMailer::Base
  default :from => ""

  def welcome_email(user)
    @user = user
    @url  = ""
    mail(:to =>, :subject => "Welcome to My Awesome Site")

What will be the email address of :from => .. ?

I need to send email to, and in any domain like

How can i do this ?

It will be helpful if someone can reply with explaination ?
Ae5bf6a2566204b386bf2898443be58d?d=identicon&s=25 Norbert Melzer (Guest)
on 2011-10-09 10:59
(Received via mailing list)
Form: ist whatever email you want it to be... the from field is the
address. So it could be you address or or similar.
it would be good advise if you ensure ownership  over the used domain or
least the used email address.

send by Samsung Galaxy Tab with Overcome Mod
Am 09.10.2011 10:22 schrieb "gmsfirst gmsfirst" <>:
86d71419a07b44512b993d3f68428a45?d=identicon&s=25 Dharmendra S. (dharmendra_s)
on 2012-11-02 15:20
Attachment: bbbbbbbappyjpg12.jpg (40 KB)
How Can i send mail in ruby on rails my version is of ruby on rails is
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.