Added mailer to notify on new user
This commit is contained in:
16
app/views/user_mailer/new_user_email.html.erb
Normal file
16
app/views/user_mailer/new_user_email.html.erb
Normal file
@@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
|
||||
</head>
|
||||
<body>
|
||||
<h2><%= @user.name %> just signed up.</h2>
|
||||
<p>
|
||||
Please contact them at <%= @user.email %><%= " or "+@user.phone.to_s unless @user.phone.blank? %> to set up a
|
||||
new user orientation, waiver, welcome, payment help, etc.<br/>
|
||||
</p>
|
||||
<p>
|
||||
To login to the site, just follow this link: <%= @url %>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
6
app/views/user_mailer/new_user_email.text.erb
Normal file
6
app/views/user_mailer/new_user_email.text.erb
Normal file
@@ -0,0 +1,6 @@
|
||||
<%= @user.name %> just signed up.
|
||||
---
|
||||
Please contact them at <%= @user.email %><%= " or "+@user.phone.to_s unless @user.phone.blank? %> to set up a
|
||||
new user orientation, waiver, welcome, payment help, etc.
|
||||
|
||||
To login to the site, just follow this link: <%= @url %>
|
||||
Reference in New Issue
Block a user