Skip to content

Add new message emails #1321

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,14 @@ config :code_corps, CodeCorps.Mailer, adapter: Bamboo.LocalAdapter

config :code_corps,
postmark_forgot_password_template: "123",
postmark_message_initiated_by_project_template: "123",
postmark_organization_invite_email_template: "123",
postmark_project_approval_request_template: "123",
postmark_project_approved_template: "123",
postmark_project_user_acceptance_template: "123",
postmark_project_user_request_template: "123",
postmark_receipt_template: "123"
postmark_receipt_template: "123",
postmark_reply_to_conversation_template: "123"

# If the dev environment has no CLOUDEX_API_KEY set, we want the app
# to still run, with cloudex in test API mode
Expand Down
4 changes: 3 additions & 1 deletion config/prod.exs
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,14 @@ config :code_corps, CodeCorps.Mailer,

config :code_corps,
postmark_forgot_password_template: "1989483",
postmark_message_initiated_by_project_template: "4324242",
postmark_organization_invite_email_template: "3441863",
postmark_project_approval_request_template: "4105824",
postmark_project_approved_template: "4105822",
postmark_project_user_acceptance_template: "1447041",
postmark_project_user_request_template: "4017262",
postmark_receipt_template: "1255222"
postmark_receipt_template: "1255222",
postmark_reply_to_conversation_template: "4324082"

# ## SSL Support
#
Expand Down
4 changes: 3 additions & 1 deletion config/remote-development.exs
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,14 @@ config :code_corps, CodeCorps.Mailer,

config :code_corps,
postmark_forgot_password_template: "123",
postmark_message_initiated_by_project_template: "123",
postmark_organization_invite_email_template: "123",
postmark_project_approval_request_template: "123",
postmark_project_approved_template: "123",
postmark_project_user_acceptance_template: "123",
postmark_project_user_request_template: "123",
postmark_receipt_template: "123"
postmark_receipt_template: "123",
postmark_reply_to_conversation_template: "123"

# ## SSL Support
#
Expand Down
4 changes: 3 additions & 1 deletion config/staging.exs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,14 @@ config :code_corps, CodeCorps.Mailer,

config :code_corps,
postmark_forgot_password_template: "1989481",
postmark_message_initiated_by_project_template: "4324241",
postmark_organization_invite_email_template: "3442401",
postmark_project_approval_request_template: "4105823",
postmark_project_approved_template: "4105744",
postmark_project_user_acceptance_template: "1447022",
postmark_project_user_request_template: "4017261",
postmark_receipt_template: "1252361"
postmark_receipt_template: "1252361",
postmark_reply_to_conversation_template: "4324243"

# ## SSL Support
#
Expand Down
4 changes: 3 additions & 1 deletion config/test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,14 @@ config :code_corps, CodeCorps.Mailer,

config :code_corps,
postmark_forgot_password_template: "123",
postmark_message_initiated_by_project_template: "123",
postmark_organization_invite_email_template: "123",
postmark_project_approval_request_template: "123",
postmark_project_approved_template: "123",
postmark_project_user_acceptance_template: "123",
postmark_project_user_request_template: "123",
postmark_receipt_template: "123"
postmark_receipt_template: "123",
postmark_reply_to_conversation_template: "123"

config :code_corps, :cloudex, CloudexTest
config :cloudex, api_key: "test_key", secret: "test_secret", cloud_name: "test_cloud_name"
18 changes: 12 additions & 6 deletions emails/forgot_password.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@
Thanks!
<br><strong>The Code Corps Team</strong>
</p>
<p class="center small">
Questions? Feedback?
<br>Visit our <strong><a href="https://help.codecorps.org">Help Center</a></strong> or just reply to this email.</p>
</td>
</tr>
</table>
Expand All @@ -71,9 +68,18 @@
<td>
<table class="email-footer" align="center" width="570" cellpadding="0" cellspacing="0">
<tr>
<td class="content-cell" align="center">
<p class="sub align-center">
Code Corps PBC
<td class="email-footer__cell" align="center">
<p class="align-center">
Questions? Feedback? Visit our <strong><a href="https://help.codecorps.org">Help Center</a></strong> or just reply to this email.
</p>
</td>
</tr>
<tr>
<td class="email-footer__cell" align="center">
<p class="align-center">
Send us 🐌 mail!
<br>
<br>Code Corps PBC
<br>4166 Wilson Ave #1
<br>San Diego, CA 92104
</p>
Expand Down
97 changes: 97 additions & 0 deletions emails/message_initiated_by_project.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>You have a new message from {{project_title}}.</title>
<!--
Make sure you copy the styles from styles.css into the email template in Postmark before saving there.

<style type="text/css" rel="stylesheet" media="all">
</style>
-->
<link rel="stylesheet" type="text/css" href="styles.css" media="screen" />
</head>
<body>
<span class="preheader">You have a new message from {{project_title}}.</span>
<table class="email-wrapper" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<table class="email-content" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td class="email-masthead" width="100%" cellpadding="0" cellspacing="0">
<table class="email-masthead_inner" align="center" width="570" cellpadding="0" cellspacing="0">
<tr>
<td>
<a href="https://www.codecorps.org">
<img src="https://d3pgew4wbk2vb1.cloudfront.net/emails/images/[email protected]" class="email-masthead_logo" />
</a>
</td>
</tr>
</table>
</td>
</tr>
<!-- Email Body -->
<tr>
<td class="email-body" width="100%" cellpadding="0" cellspacing="0">
<table class="email-body_inner" align="center" width="570" cellpadding="0" cellspacing="0">
<!-- Body content -->
<tr>
<td class="content-cell">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<p class="center">
<img src="https://d3pgew4wbk2vb1.cloudfront.net/emails/images/[email protected]" width="100" height="100" />
</p>
<p>Hi {{name}},</p>
<p>You have a new message from {{project_title}}.</p>
<p><a class="button" href="{{conversation_url}}">See your message</a></p>
</td>
</tr>
</table>
<table class="body-signature">
<tr>
<td>
<p>
Thanks!
<br><strong>The Code Corps Team</strong>
</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table class="email-footer" align="center" width="570" cellpadding="0" cellspacing="0">
<tr>
<td class="email-footer__cell" align="center">
<p class="align-center">
Questions? Feedback? Visit our <strong><a href="https://help.codecorps.org">Help Center</a></strong> or just reply to this email.
</p>
</td>
</tr>
<tr>
<td class="email-footer__cell" align="center">
<p class="align-center">
Send us 🐌 mail!
<br>
<br>Code Corps PBC
<br>4166 Wilson Ave #1
<br>San Diego, CA 92104
</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
20 changes: 13 additions & 7 deletions emails/organization_invite.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,13 @@
</td>
</tr>
</table>
<table class="body-signature">
<table class="body-signature" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td>
<p>
Thanks!
<br><strong>The Code Corps Team</strong>
</p>
<p class="center small">
Questions? Feedback?
<br>Visit our <strong><a href="https://help.codecorps.org">Help Center</a></strong> or just reply to this email.</p>
</td>
</tr>
</table>
Expand All @@ -71,9 +68,18 @@
<td>
<table class="email-footer" align="center" width="570" cellpadding="0" cellspacing="0">
<tr>
<td class="content-cell" align="center">
<p class="sub align-center">
Code Corps PBC
<td class="email-footer__cell" align="center">
<p class="align-center">
Questions? Feedback? Visit our <strong><a href="https://help.codecorps.org">Help Center</a></strong> or just reply to this email.
</p>
</td>
</tr>
<tr>
<td class="email-footer__cell" align="center">
<p class="align-center">
Send us 🐌 mail!
<br>
<br>Code Corps PBC
<br>4166 Wilson Ave #1
<br>San Diego, CA 92104
</p>
Expand Down
15 changes: 12 additions & 3 deletions emails/project_approval_request.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,18 @@
<td>
<table class="email-footer" align="center" width="570" cellpadding="0" cellspacing="0">
<tr>
<td class="content-cell" align="center">
<p class="sub align-center">
Code Corps PBC
<td class="email-footer__cell" align="center">
<p class="align-center">
Questions? Feedback? Visit our <strong><a href="https://help.codecorps.org">Help Center</a></strong> or just reply to this email.
</p>
</td>
</tr>
<tr>
<td class="email-footer__cell" align="center">
<p class="align-center">
Send us 🐌 mail!
<br>
<br>Code Corps PBC
<br>4166 Wilson Ave #1
<br>San Diego, CA 92104
</p>
Expand Down
18 changes: 12 additions & 6 deletions emails/project_approved.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@
Cheers,
<br><strong>The Code Corps Team</strong>
</p>
<p class="center small">
Questions? Feedback?
<br>Visit our <strong><a href="https://help.codecorps.org">Help Center</a></strong> or just reply to this email.</p>
</td>
</tr>
</table>
Expand All @@ -81,9 +78,18 @@
<td>
<table class="email-footer" align="center" width="570" cellpadding="0" cellspacing="0">
<tr>
<td class="content-cell" align="center">
<p class="sub align-center">
Code Corps PBC
<td class="email-footer__cell" align="center">
<p class="align-center">
Questions? Feedback? Visit our <strong><a href="https://help.codecorps.org">Help Center</a></strong> or just reply to this email.
</p>
</td>
</tr>
<tr>
<td class="email-footer__cell" align="center">
<p class="align-center">
Send us 🐌 mail!
<br>
<br>Code Corps PBC
<br>4166 Wilson Ave #1
<br>San Diego, CA 92104
</p>
Expand Down
18 changes: 12 additions & 6 deletions emails/project_user_acceptance.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,6 @@
Happy helping!
<br><strong>The Code Corps Team</strong>
</p>
<p class="center small">
Questions? Feedback?
<br>Visit our <strong><a href="https://help.codecorps.org">Help Center</a></strong> or just reply to this email.</p>
</td>
</tr>
</table>
Expand All @@ -85,9 +82,18 @@
<td>
<table class="email-footer" align="center" width="570" cellpadding="0" cellspacing="0">
<tr>
<td class="content-cell" align="center">
<p class="sub align-center">
Code Corps PBC
<td class="email-footer__cell" align="center">
<p class="align-center">
Questions? Feedback? Visit our <strong><a href="https://help.codecorps.org">Help Center</a></strong> or just reply to this email.
</p>
</td>
</tr>
<tr>
<td class="email-footer__cell" align="center">
<p class="align-center">
Send us 🐌 mail!
<br>
<br>Code Corps PBC
<br>4166 Wilson Ave #1
<br>San Diego, CA 92104
</p>
Expand Down
18 changes: 12 additions & 6 deletions emails/project_user_request.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@
Cheers,
<br><strong>The Code Corps Team</strong>
</p>
<p class="center small">
Questions? Feedback?
<br>Visit our <strong><a href="https://help.codecorps.org">Help Center</a></strong> or just reply to this email.</p>
</td>
</tr>
</table>
Expand All @@ -92,9 +89,18 @@
<td>
<table class="email-footer" align="center" width="570" cellpadding="0" cellspacing="0">
<tr>
<td class="content-cell" align="center">
<p class="sub align-center">
Code Corps PBC
<td class="email-footer__cell" align="center">
<p class="align-center">
Questions? Feedback? Visit our <strong><a href="https://help.codecorps.org">Help Center</a></strong> or just reply to this email.
</p>
</td>
</tr>
<tr>
<td class="email-footer__cell" align="center">
<p class="align-center">
Send us 🐌 mail!
<br>
<br>Code Corps PBC
<br>4166 Wilson Ave #1
<br>San Diego, CA 92104
</p>
Expand Down
Loading