Skip to content

Commit

Permalink
Add multipart email
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansobol committed Feb 21, 2012
1 parent fe3de3c commit c8a8b76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/mailers/user_mailer.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ class UserMailer < ActionMailer::Base


def registration_confirmation(user) def registration_confirmation(user)
@user = user @user = user
mail(:to => user.email, :subject => "Registered") mail(:to => "#{user.name} <#{user.email}>", :subject => "Registered")
end end
end end
5 changes: 5 additions & 0 deletions app/views/user_mailer/registration_confirmation.html.erb
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,5 @@
<p><%= @user.name %>,</p>

<p>Thank you for registering!</p>

<p><%= link_to "Edit Profile", edit_user_url(@user) %></p>

0 comments on commit c8a8b76

Please sign in to comment.