Permalink
Browse files

Add multipart email

  • Loading branch information...
1 parent fe3de3c commit c8a8b76bebb227d3c07c0badde07460d5f1a0d2c @ryansobol committed Feb 21, 2012
Showing with 6 additions and 1 deletion.
  1. +1 −1 app/mailers/user_mailer.rb
  2. +5 −0 app/views/user_mailer/registration_confirmation.html.erb
@@ -3,6 +3,6 @@ class UserMailer < ActionMailer::Base
def registration_confirmation(user)
@user = user
- mail(:to => user.email, :subject => "Registered")
+ mail(:to => "#{user.name} <#{user.email}>", :subject => "Registered")
end
end
@@ -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.