-
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.
add confirmation email template and add isbodyhtml variable
- Loading branch information
1 parent
6f6eb1b
commit 779524c
Showing
3 changed files
with
62 additions
and
14 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
48 changes: 48 additions & 0 deletions
48
Unitagram.Application/Models/Email/ConfirmationEmailTemplate.cs
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,48 @@ | ||
namespace Unitagram.Application.Models.Email; | ||
|
||
public static class ConfirmationEmailTemplate | ||
{ | ||
public static EmailMessage ToEmailMessage(string to, string code) | ||
{ | ||
return new EmailMessage | ||
{ | ||
To = to, | ||
Subject = "Hesap Onay Kodunuz: Unitagram", | ||
Body = $""" | ||
<!DOCTYPE html> | ||
<html lang="tr"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>E-posta Onayı</title> | ||
</head> | ||
<body> | ||
<table style="max-width: 600px; margin: 0 auto; padding: 20px; font-family: Arial, sans-serif;"> | ||
<tr> | ||
<td align="center"> | ||
<h2>E-posta Onayı</h2> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td align="center"> | ||
<p>Uygulamamıza kaydınız için teşekkür ederiz. Kaydınızı tamamlamak için lütfen aşağıdaki 6 haneli kodu girin:</p> | ||
<h3 style="font-size: 24px; color: #007bff;">{code}</h3> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td align="center"> | ||
<p>Eğer bu kodu istememişseniz, bu e-postayı dikkate almayınız.</p> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td align="center"> | ||
<p>Unitagram'ı seçtiğiniz için teşekkür ederiz!</p> | ||
</td> | ||
</tr> | ||
</table> | ||
</body> | ||
</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