-
-
Notifications
You must be signed in to change notification settings - Fork 10
feat(emails): bulletproof CTA buttons in transactional templates #3920
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
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
5fc3e6e
feat(templates): bulletproof CTA buttons in transactional emails
PierreBrisorgueil 6734790
fix(emails): extend bulletproof CTA button to org-request + org-membe…
PierreBrisorgueil 0388ef4
fix(emails): add rel=noopener noreferrer to CTA buttons (review)
PierreBrisorgueil File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
| @@ -1,12 +1,16 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"><head><title></title></head> | ||
| <body> | ||
| <p>Hello,</p> | ||
| <p>We were unable to process the latest payment for your <b>{{appName}}</b> subscription.</p> | ||
| <p>Your account remains active for now. Please update your payment method before the grace period ends to avoid any service interruption.</p> | ||
| <p>Update your card on your <a href="{{billingPortalUrl}}">billing portal</a>.</p> | ||
| <br /> | ||
| <p>The <b>{{appName}}</b> Team.</p> | ||
| <br/> | ||
| <i style="color:#9b9b9b">Please do not reply to this email, you can contact us <a href="mailto:{{appContact}}">here</a>.</i> | ||
| </body></html> | ||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <title></title> | ||
| </head> | ||
| <body> | ||
| <p>Hello,</p> | ||
| <p>We were unable to process the latest payment for your <b>{{appName}}</b> subscription.</p> | ||
| <p>Your account remains active for now. Please update your payment method before the grace period ends to avoid any service interruption.</p> | ||
| <p>Update your card on your <a href="{{billingPortalUrl}}">billing portal</a>.</p> | ||
| <br /> | ||
| <p>The <b>{{appName}}</b> Team.</p> | ||
| <br /> | ||
| <i style="color: #9b9b9b">Please do not reply to this email, you can contact us <a href="mailto:{{appContact}}">here</a>.</i> | ||
| </body> | ||
| </html> |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,12 +1,19 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"><head><title></title></head> | ||
| <body> | ||
| <p>Hello,</p> | ||
| <p>Your <b>{{appName}}</b> weekly quota is now fully used ({{meterUsed}} / {{meterQuota}} units).</p> | ||
| <p>If you have an extras pack, your usage continues drawing from its remaining balance until it's used up. Otherwise it pauses until you add an extras pack or upgrade your plan — nothing is charged automatically.</p> | ||
| <p>Check your consumption or add an extras pack on your <a href="{{billingUrl}}">billing dashboard</a>.</p> | ||
| <br /> | ||
| <p>The <b>{{appName}}</b> Team.</p> | ||
| <br/> | ||
| <i style="color:#9b9b9b">Please do not reply to this email, you can contact us <a href="mailto:{{appContact}}">here</a>.</i> | ||
| </body></html> | ||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <title></title> | ||
| </head> | ||
| <body> | ||
| <p>Hello,</p> | ||
| <p>Your <b>{{appName}}</b> weekly quota is now fully used ({{meterUsed}} / {{meterQuota}} units).</p> | ||
| <p> | ||
| If you have an extras pack, your usage continues drawing from its remaining balance until it's used up. Otherwise it pauses until you add an | ||
| extras pack or upgrade your plan — nothing is charged automatically. | ||
| </p> | ||
| <p>Check your consumption or add an extras pack on your <a href="{{billingUrl}}">billing dashboard</a>.</p> | ||
| <br /> | ||
| <p>The <b>{{appName}}</b> Team.</p> | ||
| <br /> | ||
| <i style="color: #9b9b9b">Please do not reply to this email, you can contact us <a href="mailto:{{appContact}}">here</a>.</i> | ||
| </body> | ||
| </html> |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,12 +1,19 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"><head><title></title></head> | ||
| <body> | ||
| <p>Hello,</p> | ||
| <p>Your <b>{{appName}}</b> plan has reached <b>{{threshold}}%</b> of its weekly quota ({{meterUsed}} / {{meterQuota}} units used).</p> | ||
| <p>You still have room to keep going. Once you reach 100%, runs continue only while you have an extras-pack balance; without one they pause until you add an extras pack or upgrade your plan — nothing is charged automatically.</p> | ||
| <p>Review your usage, add an extras pack, or upgrade your plan on your <a href="{{billingUrl}}">billing dashboard</a>.</p> | ||
| <br /> | ||
| <p>The <b>{{appName}}</b> Team.</p> | ||
| <br/> | ||
| <i style="color:#9b9b9b">Please do not reply to this email, you can contact us <a href="mailto:{{appContact}}">here</a>.</i> | ||
| </body></html> | ||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <title></title> | ||
| </head> | ||
| <body> | ||
| <p>Hello,</p> | ||
| <p>Your <b>{{appName}}</b> plan has reached <b>{{threshold}}%</b> of its weekly quota ({{meterUsed}} / {{meterQuota}} units used).</p> | ||
| <p> | ||
| You still have room to keep going. Once you reach 100%, runs continue only while you have an extras-pack balance; without one they pause until | ||
| you add an extras pack or upgrade your plan — nothing is charged automatically. | ||
| </p> | ||
| <p>Review your usage, add an extras pack, or upgrade your plan on your <a href="{{billingUrl}}">billing dashboard</a>.</p> | ||
| <br /> | ||
| <p>The <b>{{appName}}</b> Team.</p> | ||
| <br /> | ||
| <i style="color: #9b9b9b">Please do not reply to this email, you can contact us <a href="mailto:{{appContact}}">here</a>.</i> | ||
| </body> | ||
| </html> |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,8 +1,36 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"><head><title>{{appName}} invitation</title></head> | ||
| <body> | ||
| <p>Hello {{displayName}},</p> | ||
| <p>You have been invited to join <b>{{orgName}}</b> on {{appName}}.</p> | ||
| <p>Review and accept the invitation here: {{url}}</p> | ||
| <p>The <b>{{appName}}</b> Team.</p> | ||
| </body></html> | ||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <title>{{appName}} invitation</title> | ||
| </head> | ||
| <body> | ||
| <p>Hello {{displayName}},</p> | ||
| <p>You have been invited to join <b>{{orgName}}</b> on {{appName}}.</p> | ||
| <p>Review and accept the invitation:</p> | ||
| <table role="presentation" cellpadding="0" cellspacing="0" border="0" style="margin: 24px 0"> | ||
| <tr> | ||
| <td align="center" bgcolor="#1a1a1a" style="border-radius: 6px"> | ||
| <a | ||
| href="{{url}}" | ||
| target="_blank" | ||
| rel="noopener noreferrer" | ||
| style=" | ||
| display: inline-block; | ||
| padding: 12px 28px; | ||
| font-family: Arial, Helvetica, sans-serif; | ||
| font-size: 16px; | ||
| font-weight: bold; | ||
| line-height: 20px; | ||
| color: #ffffff; | ||
| text-decoration: none; | ||
| border-radius: 6px; | ||
| " | ||
| >Accept invitation</a | ||
| > | ||
| </td> | ||
| </tr> | ||
| </table> | ||
| <p style="font-size: 13px; color: #9b9b9b">Button not working? <a href="{{url}}">{{url}}</a></p> | ||
| <p>The <b>{{appName}}</b> Team.</p> | ||
| </body> | ||
| </html> | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -1,8 +1,12 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"><head><title></title></head> | ||
| <body> | ||
| <p>Hello {{displayName}},</p> | ||
| <p>Your request to join <b>{{orgName}}</b> on {{appName}} has been approved.</p> | ||
| <p>You can now access the organization.</p> | ||
| <p>The <b>{{appName}}</b> Team.</p> | ||
| </body></html> | ||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <title></title> | ||
| </head> | ||
| <body> | ||
| <p>Hello {{displayName}},</p> | ||
| <p>Your request to join <b>{{orgName}}</b> on {{appName}} has been approved.</p> | ||
| <p>You can now access the organization.</p> | ||
| <p>The <b>{{appName}}</b> Team.</p> | ||
| </body> | ||
| </html> |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,8 +1,36 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"><head><title></title></head> | ||
| <body> | ||
| <p>Hello,</p> | ||
| <p><b>{{requesterName}}</b> ({{requesterEmail}}) has requested to join your organization <b>{{orgName}}</b> on {{appName}}.</p> | ||
| <p>Review this request in your dashboard: {{url}}</p> | ||
| <p>The <b>{{appName}}</b> Team.</p> | ||
| </body></html> | ||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <title></title> | ||
| </head> | ||
| <body> | ||
| <p>Hello,</p> | ||
| <p><b>{{requesterName}}</b> ({{requesterEmail}}) has requested to join your organization <b>{{orgName}}</b> on {{appName}}.</p> | ||
| <p>Review this request in your dashboard:</p> | ||
| <table role="presentation" cellpadding="0" cellspacing="0" border="0" style="margin: 24px 0"> | ||
| <tr> | ||
| <td align="center" bgcolor="#1a1a1a" style="border-radius: 6px"> | ||
| <a | ||
| href="{{url}}" | ||
| target="_blank" | ||
| rel="noopener noreferrer" | ||
| style=" | ||
|
Copilot marked this conversation as resolved.
|
||
| display: inline-block; | ||
| padding: 12px 28px; | ||
| font-family: Arial, Helvetica, sans-serif; | ||
| font-size: 16px; | ||
| font-weight: bold; | ||
| line-height: 20px; | ||
| color: #ffffff; | ||
| text-decoration: none; | ||
| border-radius: 6px; | ||
| " | ||
| >Review request</a | ||
| > | ||
| </td> | ||
| </tr> | ||
| </table> | ||
| <p style="font-size: 13px; color: #9b9b9b">Button not working? <a href="{{url}}">{{url}}</a></p> | ||
| <p>The <b>{{appName}}</b> Team.</p> | ||
| </body> | ||
| </html> | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -1,7 +1,11 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"><head><title></title></head> | ||
| <body> | ||
| <p>Hello {{displayName}},</p> | ||
| <p>Your request to join <b>{{orgName}}</b> on {{appName}} has been declined.</p> | ||
| <p>The <b>{{appName}}</b> Team.</p> | ||
| </body></html> | ||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <title></title> | ||
| </head> | ||
| <body> | ||
| <p>Hello {{displayName}},</p> | ||
| <p>Your request to join <b>{{orgName}}</b> on {{appName}} has been declined.</p> | ||
| <p>The <b>{{appName}}</b> Team.</p> | ||
| </body> | ||
| </html> |
This file contains hidden or 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 |
|---|---|---|
| @@ -1,20 +1,14 @@ | ||
| <!DOCTYPE html> | ||
| <!doctype html> | ||
| <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> | ||
| <head> | ||
| <title></title> | ||
| </head> | ||
|
|
||
| <body> | ||
| <p>Dear {{displayName}},</p> | ||
| <p> | ||
| This is a confirmation that the password for your account has just been | ||
| changed | ||
| </p> | ||
| <p>This is a confirmation that the password for your account has just been changed</p> | ||
| <p>The <b>{{appName}}</b> Support Team.</p> | ||
| <br /> | ||
| <i style="color: #9b9b9b" | ||
| >Please do not reply to this email, you can contact us | ||
| <a href="mailto:{{appContact}}">here</a>.</i | ||
| > | ||
| <i style="color: #9b9b9b">Please do not reply to this email, you can contact us <a href="mailto:{{appContact}}">here</a>.</i> | ||
| </body> | ||
| </html> |
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.