Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 48c141c254
Fetching contributors…

Cannot retrieve contributors at this time

11 lines (8 sloc) 0.213 kb
class Mailer < ActionMailer::Base
default :from => "from@example.com"
def send_post(post, to)
@post = post
mail(:to=>to,
:subject=>"Post: #{@post.title}",:body=>"Hey i'm from mailer'")
end
end
Jump to Line
Something went wrong with that request. Please try again.