forked from juspay/hyperswitch
-
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(dashboard_metadata): Add email alert for Prod Intent (juspay#3482)
Co-authored-by: Mani Chandra Dulam <[email protected]> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
90a2462
commit 94cd7b6
Showing
5 changed files
with
250 additions
and
6 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 |
---|---|---|
@@ -1,2 +1,3 @@ | ||
pub const MAX_NAME_LENGTH: usize = 70; | ||
pub const MAX_COMPANY_NAME_LENGTH: usize = 70; | ||
pub const BUSINESS_EMAIL: &str = "[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
138 changes: 138 additions & 0 deletions
138
crates/router/src/services/email/assets/bizemailprod.html
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 |
---|---|---|
@@ -0,0 +1,138 @@ | ||
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /> | ||
<title>Welcome to HyperSwitch!</title> | ||
<body style="background-color: #ececec"> | ||
<div | ||
id="wrapper" | ||
style=" | ||
background-color: none; | ||
margin: 0 auto; | ||
text-align: center; | ||
width: 90%; | ||
-premailer-height: 200; | ||
" | ||
> | ||
<table | ||
align="center" | ||
class="main-table" | ||
style=" | ||
-premailer-cellpadding: 0; | ||
-premailer-cellspacing: 0; | ||
background-color: #fff; | ||
border: 0; | ||
border-top: 5px solid #0165ef; | ||
margin: 0 auto; | ||
mso-table-lspace: 0; | ||
mso-table-rspace: 0; | ||
padding: 0 40; | ||
text-align: center; | ||
width: 100%; | ||
" | ||
bgcolor="#ffffff" | ||
cellpadding="0" | ||
cellspacing="0" | ||
> | ||
<tr> | ||
<td | ||
class="spacer-sm" | ||
style=" | ||
-premailer-height: 20; | ||
-premailer-width: 80%; | ||
line-height: 10px; | ||
margin: 0 auto; | ||
padding: 0; | ||
" | ||
width="100%" | ||
></td> | ||
</tr> | ||
<tr> | ||
<td | ||
class="spacer-sm" | ||
style=" | ||
-premailer-height: 20; | ||
-premailer-width: 80%; | ||
line-height: 10px; | ||
margin: 0 auto; | ||
padding: 0; | ||
" | ||
width="100%" | ||
></td> | ||
</tr> | ||
<tr> | ||
<td | ||
class="copy" | ||
style=" | ||
color: #666; | ||
font-family: Roboto, Helvetica, Arial, san-serif; | ||
font-size: 14px; | ||
text-align: left; | ||
line-height: 20px; | ||
margin-top: 20px; | ||
padding: 15px; | ||
" | ||
> | ||
<br /> | ||
<p>Hi Team,</p> | ||
<p> | ||
A Production Account Intent has been initiated by {username} - | ||
please find more details below: | ||
</p> | ||
<ol> | ||
<li><strong>Name:</strong> {username}</li> | ||
<li><strong>Point of Contact Email (POC):</strong> {poc_email}</li> | ||
<li><strong>Legal Business Name:</strong> {legal_business_name}</li> | ||
<li><strong>Business Location:</strong> {business_location}</li> | ||
<li><strong>Business Website:</strong> {business_website}</li> | ||
</ol> | ||
<br /> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td | ||
class="spacer-sm" | ||
style=" | ||
-premailer-height: 20; | ||
-premailer-width: 80%; | ||
line-height: 10px; | ||
margin: 0 auto; | ||
padding: 0; | ||
" | ||
width="100%" | ||
></td> | ||
</tr> | ||
|
||
<tr> | ||
<td | ||
class="headline" | ||
style=" | ||
color: #444; | ||
font-family: Roboto, Helvetica, Arial, san-serif; | ||
font-size: 18px; | ||
font-weight: 100; | ||
line-height: 36px; | ||
margin: 0 auto; | ||
padding: 0; | ||
text-align: center; | ||
" | ||
align="center" | ||
> | ||
Regards,<br /> | ||
Hyperswitch Dashboard Team | ||
</td> | ||
</tr> | ||
<tr> | ||
<td | ||
class="spacer-lg" | ||
style=" | ||
-premailer-height: 75; | ||
-premailer-width: 100%; | ||
line-height: 30px; | ||
margin: 0 auto; | ||
padding: 0; | ||
" | ||
height="75" | ||
width="100%" | ||
></td> | ||
</tr> | ||
</table> | ||
</div> | ||
</body> |
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