-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: unsub footer; refactor: no html content
- Loading branch information
Showing
6 changed files
with
37 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,12 +27,15 @@ describe('mailer', () => { | |
"handler": "nodemailer", | ||
"handlerOptions": undefined, | ||
"headers": {}, | ||
"htmlContent": "Leave this email here", | ||
"htmlContent": null, | ||
"renderer": "plain", | ||
"rendererOptions": {}, | ||
"replyTo": undefined, | ||
"subject": "Don't delete me", | ||
"textContent": "Leave this email here", | ||
"textContent": "Leave this email here | ||
To unsubscribe from all Freevite emails forever, click here: | ||
https://example.com/unsubscribe?email=darlene%40fs0ciety.pizza&token=wgPFf2G9H7D9zKIEjop_AeZCED7pLZex619NqYasXwk", | ||
"to": [ | ||
"[email protected]", | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ describe('with test handler', () => { | |
"handler": "nodemailer", | ||
"handlerOptions": undefined, | ||
"headers": {}, | ||
"htmlContent": "Hello from Freevite! Click this link to manage your event details and make it public:<br><br>https://example.com/edit?token=SOME-EDIT-TOKEN<br><br>You must click the above link within 24 hours to confirm your email address.<br>Otherwise, we will automatically delete your event. Feel free to recreate it.<br><br>If you did not create this event, you can ignore this email and this event will be deleted.<br><br>If you need any help, just reply to this email. Thanks for using Freevite!", | ||
"htmlContent": null, | ||
"renderer": "plain", | ||
"rendererOptions": {}, | ||
"replyTo": undefined, | ||
|
@@ -45,7 +45,10 @@ Otherwise, we will automatically delete your event. Feel free to recreate it. | |
If you did not create this event, you can ignore this email and this event will be deleted. | ||
If you need any help, just reply to this email. Thanks for using Freevite!", | ||
If you need any help, just reply to this email. Thanks for using Freevite! | ||
To unsubscribe from all Freevite emails forever, click here: | ||
https://example.com/unsubscribe?email=emma%40example.com&token=oyTyug8SP9wjzqGkAI7AKThdFp4hQs0bBLAPfq1SbRs", | ||
"to": [ | ||
"[email protected]", | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ describe('with test handler', () => { | |
"handler": "nodemailer", | ||
"handlerOptions": undefined, | ||
"headers": {}, | ||
"htmlContent": "Hello from Freevite! You asked for a reminder about this event when you RSVPed:<br><br>Emma's Holiday Party<br>Starts at: Sun Dec 25, 2022, 7:00 AM EST (in a day))<br>Ends at: Sun Dec 25, 2022, 10:00 AM EST (3 hours long)<br><br>View the event here:<br>https://example.com/events/emmas-holiday-party<br><br>Thanks for using Freevite!", | ||
"htmlContent": null, | ||
"renderer": "plain", | ||
"rendererOptions": {}, | ||
"replyTo": undefined, | ||
|
@@ -51,7 +51,10 @@ Ends at: Sun Dec 25, 2022, 10:00 AM EST (3 hours long) | |
View the event here: | ||
https://example.com/events/emmas-holiday-party | ||
Thanks for using Freevite!", | ||
Thanks for using Freevite! | ||
To unsubscribe from all Freevite emails forever, click here: | ||
https://example.com/unsubscribe?email=holmes%40example.com&token=xZPATAWTt2b9dRKrUFJ9yE982ThnnvUg6APxtN_gr8s", | ||
"to": [ | ||
"[email protected]", | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ describe('with test handler', () => { | |
"handler": "nodemailer", | ||
"handlerOptions": undefined, | ||
"headers": {}, | ||
"htmlContent": "Hello from Freevite!<br><br>Click here to confirm you're attending Emma's Holiday Party:<br>https://example.com/rsvp?token=SOME-EDIT-TOKEN<br>Once you do, we'll confirm your RSVP and notify the event organizer.<br><br>To change your response or delete your RSVP, click the link above.<br><br>If you did not RSVP to this event, you can ignore this email.", | ||
"htmlContent": null, | ||
"renderer": "plain", | ||
"rendererOptions": {}, | ||
"replyTo": undefined, | ||
|
@@ -50,7 +50,10 @@ Once you do, we'll confirm your RSVP and notify the event organizer. | |
To change your response or delete your RSVP, click the link above. | ||
If you did not RSVP to this event, you can ignore this email.", | ||
If you did not RSVP to this event, you can ignore this email. | ||
To unsubscribe from all Freevite emails forever, click here: | ||
https://example.com/unsubscribe?email=holmes%40example.com&token=xZPATAWTt2b9dRKrUFJ9yE982ThnnvUg6APxtN_gr8s", | ||
"to": [ | ||
"[email protected]", | ||
], | ||
|
@@ -83,7 +86,7 @@ If you did not RSVP to this event, you can ignore this email.", | |
"handler": "nodemailer", | ||
"handlerOptions": undefined, | ||
"headers": {}, | ||
"htmlContent": "Hello from Freevite! Sherlock Holmes has confirmed they are attending Emma's Holiday Party:<br><br>Name: Sherlock Holmes<br>Guests: 2<br>Comment: Looking forward to it!<br><br>To view all responses and manage your event, click here:<br>https://example.com/edit?token=SOME-EDIT-TOKEN<br><br>Thanks for using Freevite!", | ||
"htmlContent": null, | ||
"renderer": "plain", | ||
"rendererOptions": {}, | ||
"replyTo": undefined, | ||
|
@@ -97,7 +100,10 @@ Comment: Looking forward to it! | |
To view all responses and manage your event, click here: | ||
https://example.com/edit?token=SOME-EDIT-TOKEN | ||
Thanks for using Freevite!", | ||
Thanks for using Freevite! | ||
To unsubscribe from all Freevite emails forever, click here: | ||
https://example.com/unsubscribe?email=emma%40example.com&token=oyTyug8SP9wjzqGkAI7AKThdFp4hQs0bBLAPfq1SbRs", | ||
"to": [ | ||
"[email protected]", | ||
], | ||
|
@@ -130,7 +136,7 @@ Thanks for using Freevite!", | |
"handler": "nodemailer", | ||
"handlerOptions": undefined, | ||
"headers": {}, | ||
"htmlContent": "Hello from Freevite! Sherlock Holmes has canceled their RSVP to Emma's Holiday Party.<br><br>Here are the details of the RSVP before it was canceled:<br>Name: Sherlock Holmes<br>Guests: 2<br>Comment: Looking forward to it!<br><br>To view all RSVPs and manage your event, click here:<br>https://example.com/edit?token=SOME-EDIT-TOKEN<br><br>Thanks for using Freevite!", | ||
"htmlContent": null, | ||
"renderer": "plain", | ||
"rendererOptions": {}, | ||
"replyTo": undefined, | ||
|
@@ -145,7 +151,10 @@ Comment: Looking forward to it! | |
To view all RSVPs and manage your event, click here: | ||
https://example.com/edit?token=SOME-EDIT-TOKEN | ||
Thanks for using Freevite!", | ||
Thanks for using Freevite! | ||
To unsubscribe from all Freevite emails forever, click here: | ||
https://example.com/unsubscribe?email=emma%40example.com&token=oyTyug8SP9wjzqGkAI7AKThdFp4hQs0bBLAPfq1SbRs", | ||
"to": [ | ||
"[email protected]", | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters