Use uploaded PNG logo in email templates
All checks were successful
Deploy Beta (NATIVE) / deploy (push) Successful in 25s
All checks were successful
Deploy Beta (NATIVE) / deploy (push) Successful in 25s
This commit is contained in:
parent
932e5ee742
commit
d49fd41bfd
5 changed files with 5 additions and 6 deletions
BIN
mailer/static/mailer/images/logo.png
Normal file
BIN
mailer/static/mailer/images/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
|
|
@ -14,8 +14,7 @@
|
|||
<!-- Header -->
|
||||
<tr>
|
||||
<td align="center" style="padding: 24px; background-color: #fbf9f8; border-bottom: 1px solid #d9c5b2;">
|
||||
<h1 style="margin: 0; font-family: 'Libre Caslon Text', serif; font-size: 36px; color: #6b1a2c; font-weight: 700; letter-spacing: -0.5px;">Tradhox</h1>
|
||||
<p style="margin: 4px 0 0 0; font-family: 'Work Sans', sans-serif; font-size: 14px; color: #6b1a2c; font-weight: 600;">From makers to the world</p>
|
||||
<img src="{{ logo_url }}" alt="Tradhox" width="160" style="display: block; border: 0; outline: none; text-decoration: none;" />
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Content -->
|
||||
|
|
|
|||
|
|
@ -14,8 +14,7 @@
|
|||
<!-- Header -->
|
||||
<tr>
|
||||
<td align="center" style="padding: 24px; background-color: #fbf9f8; border-bottom: 1px solid #d9c5b2;">
|
||||
<h1 style="margin: 0; font-family: 'Libre Caslon Text', serif; font-size: 36px; color: #6b1a2c; font-weight: 700; letter-spacing: -0.5px;">Tradhox</h1>
|
||||
<p style="margin: 4px 0 0 0; font-family: 'Work Sans', sans-serif; font-size: 14px; color: #6b1a2c; font-weight: 600;">From makers to the world</p>
|
||||
<img src="{{ logo_url }}" alt="Tradhox" width="160" style="display: block; border: 0; outline: none; text-decoration: none;" />
|
||||
</td>
|
||||
</tr>
|
||||
<!-- Content -->
|
||||
|
|
|
|||
|
|
@ -14,8 +14,7 @@
|
|||
<!-- Header -->
|
||||
<tr>
|
||||
<td align="center" style="padding: 24px; background-color: #fbf9f8; border-bottom: 1px solid #d9c5b2;">
|
||||
<h1 style="margin: 0; font-family: 'Libre Caslon Text', serif; font-size: 36px; color: #6b1a2c; font-weight: 700; letter-spacing: -0.5px;">Tradhox</h1>
|
||||
<p style="margin: 4px 0 0 0; font-family: 'Work Sans', sans-serif; font-size: 14px; color: #6b1a2c; font-weight: 600;">From makers to the world</p>
|
||||
<img src="{{ logo_url }}" alt="Tradhox" width="160" style="display: block; border: 0; outline: none; text-decoration: none;" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
|
|
|||
|
|
@ -39,6 +39,8 @@ def send_test_email(request):
|
|||
}
|
||||
subject = "Welcome to Tradhox Family"
|
||||
|
||||
context['logo_url'] = request.build_absolute_uri('/static/mailer/images/logo.png')
|
||||
|
||||
try:
|
||||
html_content = render_to_string(f'emails/sellercentral/common/{template_name}.html', context)
|
||||
text_content = strip_tags(html_content)
|
||||
|
|
|
|||
Loading…
Reference in a new issue