VRFS-1483 adding send batch layouts and such

This commit is contained in:
Jonathan Kolyer 2014-03-18 23:05:40 +00:00
parent cdb271bf98
commit 1c39238fe5
8 changed files with 75 additions and 0 deletions

View File

@ -0,0 +1,8 @@
require 'resque_mailer'
module JamRuby
class AsyncMailer < ActionMailer::Base
include SendGrid
# include Resque::Mailer
end
end

View File

@ -0,0 +1 @@
<%= @body %>

View File

@ -0,0 +1 @@
<%= @body %>

View File

@ -0,0 +1 @@
send_batch_email.html.erb

View File

@ -0,0 +1 @@
send_batch_email.text.erb

View File

@ -0,0 +1,54 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JamKazam</title>
<style>
p {
margin-bottom:0px;
line-height:140%;
}
</style>
</head>
<body bgcolor="#000000" style="margin-top:10px;font-family:Arial, Helvetica, sans-serif;">
<table bgcolor="#262626" width="650" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><img src="http://www.jamkazam.com/assets/email/header.png" width="650" height="183" alt="JamKazam"></td>
</tr>
</table>
<table bgcolor="#262626" width="650" align="center" cellpadding="30" cellspacing="0">
<tr>
<td align="left"><h1 style="font-size:22px;font-weight:normal;margin-top:0px"><font color="#F34E1C" face="Arial, Helvetica, sans-serif"><%= yield(:title) %></font></h1>
<p><font size="3" color="#AAAAAA" face="Arial, Helvetica, sans-serif"><%= yield %></font></p>
<br>
</td>
</tr>
<tr>
<td>
<table bgcolor="#21474C" cellpadding="10" cellspacing="0">
<tr>
<td align="left">
<!-- CALL OUT BOX -->
</font></p>
<p style="margin-top:0px"><font size="2" color="#7FACBA" face="Arial, Helvetica, sans-serif">This email was sent to you because you have an account at <a style="color: #588C98;" href="http://www.jamkazam.com">JamKazam</a>.
</td></tr></table>
</td>
</tr>
</table>
<table align="center" width="650" cellpadding="10" bgcolor="#156572" cellspacing="0">
<tr>
<td align="center"><font size="1" color="#ffffff" face="Arial, Helvetica, sans-serif">Copyright &copy; <%= Time.now.year %> JamKazam, Inc. All rights reserved.</font>
</td>
</tr>
</table>
</body>
</html>

View File

@ -0,0 +1,8 @@
<%= yield %>
<% unless @suppress_user_has_account_footer == true %>
This email was sent to you because you have an account at JamKazam / http://www.jamkazam.com.
<% end %>
Copyright <%= Time.now.year %> JamKazam, Inc. All rights reserved.

View File

@ -67,6 +67,7 @@ gem 'resque-retry'
gem 'resque-failed-job-mailer'
gem 'resque-dynamic-queues'
gem 'resque-lonely_job', '~> 1.0.0'
gem 'resque_mailer'
gem 'quiet_assets', :group => :development
gem 'bugsnag'
gem 'multi_json', '1.9.0'