Skip to content

Commit 31c733e

Browse files
committed
updated email template
1 parent 9ebc221 commit 31c733e

File tree

2 files changed

+46
-14
lines changed

2 files changed

+46
-14
lines changed

index.js

Lines changed: 45 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -126,19 +126,51 @@ function same_header (message_one, message_two = {}) {
126126
function message_html (title, text, to) {
127127
return `
128128
<!DOCTYPE HTML><html lang='en-US'>\r\n
129-
<head><title>FunNode</title></head>
130-
<body style='background-color:#F5F5F5;font:1.1em Century Gothic,sans-serif;height:100%;line-height:1.4em;padding:14px;min-width:500px;'>
131-
<div style='background-color:#FFF;border:1px solid #DDD;border-radius:9px;margin:14px auto;padding:14px;'>
132-
<a href='https://www.funnode.com/' rel='noopener' target='_blank' title='FunNode Homepage' style='color: #0074D9;'>
133-
<img src='https://assets.funnode.com/imgs/logo.jpg' alt='funnode logo' style='border-radius:9px;border:1px solid #CCC;float:right;margin:9px;max-height:50px;max-width:50px;position:relative;bottom:35px;left:35px;' />
134-
</a>
135-
${text}
136-
<hr style='margin-top: 32px;' />
137-
<p style='font-size: 72%;'><a href='https://www.funnode.com/' rel='noopener' target='_blank' title='FunNode Homepage' style='color: #0074D9;'>FunNode.com</a> is a <strong itemprop='applicationCategory'>modern gaming website</strong> that hosts some of the most popular board games and card games in the world. The visually-appealing and browser-friendly interface (<strong>no flash</strong> and <strong>no java</strong>) gives players the freedom to play on various devices, including smartphones and tablets. Moreover, FunNode does not require you to register, and is completely <strong>Free-to-Play</strong>!</p>
138-
<p style='font-size: 72%;'>For a complete list of recent changes on FunNode, check out the <a href='https://www.funnode.com/news#changelog' rel='noopener' target='_blank' title='Check out the changes at FunNode' style='color: #0074D9;'>Changelog</a>. We are also welcoming feedback for improvements and requests for new features and/or games to add to FunNode. Please feel free to submit them in our <a href='https://www.funnode.com/forums' rel='noopener' target='_blank' title='FunNode Forums' style='color: #0074D9;'>Forums</a> or <a href='https://www.funnode.com/requests' rel='noopener' target='_blank' title='FunNode Requests' style='color: #0074D9;'>Requests page</a>.</p>
139-
</div>
140-
${(to.unsubscribe) ?
141-
`<p style='font-size: 81%;'>This email was sent to you as determined by your preferences. You may change your preferences on your <a href='https://www.funnode.com/players/${to.user}' rel='noopener' target='_blank' title='View Profile Page' style='color: #0074D9;'>profile page</a>. You may also <a href='https://www.funnode.com/players/${to.user}?unsubscribe=${to.unsubscribe}' rel='noopener' target='_blank' title='Unsubscribe' style='color: #0074D9;'>unsubscribe</a> from all emails.</p>` : ''}
129+
<head>
130+
<meta charset='utf-8'>
131+
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
132+
<title>FunNode</title>
133+
</head>
134+
<body style='background-color:#F5F5F5;font-family:Century Gothic,"Mali","Atma","Patrick Hand","Ubuntu",Arial,sans-serif;height:100%;line-height:1.4em;padding:0;margin:0;min-width:500px;'>
135+
<table width='100%' cellpadding='0' cellspacing='0' border='0' style='background-color:#F5F5F5;padding:14px 0;'>
136+
<tr>
137+
<td align='center' style='padding:14px 0;'>
138+
<table width='600' cellpadding='0' cellspacing='0' border='0' style='background-color:#FFF;border-radius:9px;border:1px solid #DDD;box-shadow:0 0 4px #CCC;max-width:600px;margin:0 auto;'>
139+
<tr>
140+
<td style='padding:14px 14px 0 14px;'>
141+
<table width='100%' cellpadding='0' cellspacing='0' border='0'>
142+
<tr>
143+
<td align='right' style='padding-bottom:9px;'>
144+
<a href='https://www.funnode.com/' rel='noopener' target='_blank' title='FunNode Homepage' style='color: #0074D9; text-decoration:none;'>
145+
<img src='https://assets.funnode.com/imgs/logo.jpg' alt='funnode logo' style='border-radius:9px;border:1px solid #CCC;max-height:50px;max-width:50px;display:block;' />
146+
</a>
147+
</td>
148+
</tr>
149+
</table>
150+
</td>
151+
</tr>
152+
<tr>
153+
<td style='padding:0 14px 14px 14px;'>
154+
${text}
155+
</td>
156+
</tr>
157+
<tr>
158+
<td style='padding:14px;border-top:1px solid #DDD;background-color:#F5F5F5;'>
159+
<hr style='margin-top: 18px; margin-bottom: 9px; border: none; border-top: 1px solid #DDD;' />
160+
<p style='font-size: 72%; color:#555; margin:0 0 9px 0; line-height:1.4;'><a href='https://www.funnode.com/' rel='noopener' target='_blank' title='FunNode Homepage' style='color: #0074D9;text-decoration:none;'>FunNode.com</a> is a <strong>modern gaming website</strong> that hosts some of the most popular board games and card games in the world. The visually-appealing and browser-friendly interface (<strong>no flash</strong> and <strong>no java</strong>) gives players the freedom to play on various devices, including smartphones and tablets. Moreover, FunNode does not require you to register, and is completely <strong>Free-to-Play</strong>!</p>
161+
<p style='font-size: 72%; color:#555; margin:0; line-height:1.4;'>For a complete list of recent changes on FunNode, check out the <a href='https://www.funnode.com/news#changelog' rel='noopener' target='_blank' title='Check out the changes at FunNode' style='color: #0074D9;text-decoration:none;'>Changelog</a>. We are also welcoming feedback for improvements and requests for new features and/or games to add to FunNode. Please feel free to submit them in our <a href='https://www.funnode.com/forums' rel='noopener' target='_blank' title='FunNode Forums' style='color: #0074D9;text-decoration:none;'>Forums</a> or <a href='https://www.funnode.com/requests' rel='noopener' target='_blank' title='FunNode Requests' style='color: #0074D9;text-decoration:none;'>Requests page</a>.</p>
162+
</td>
163+
</tr>
164+
${(to.unsubscribe) ?
165+
`<tr>
166+
<td style='padding:9px 14px;background-color:#F5F5F5;border-top:1px solid #DDD;'>
167+
<p style='font-size: 81%; color:#555; margin:0; text-align:center;'>This email was sent to you as determined by your preferences. You may change your preferences on your <a href='https://www.funnode.com/players/${to.user}' rel='noopener' target='_blank' title='View Profile Page' style='color: #0074D9;text-decoration:none;'>profile page</a>. You may also <a href='https://www.funnode.com/players/${to.user}?unsubscribe=${to.unsubscribe}' rel='noopener' target='_blank' title='Unsubscribe' style='color: #0074D9;text-decoration:none;'>unsubscribe</a> from all emails.</p>
168+
</td>
169+
</tr>` : ''}
170+
</table>
171+
</td>
172+
</tr>
173+
</table>
142174
</body>
143175
</html>
144176
`;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@funnode/mailgun",
3-
"version": "2.1.2",
3+
"version": "2.1.3",
44
"description": "A mailgun wrapper used by funnode repositories",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)