Skip to content

Commit aad433b

Browse files
authored
Merge pull request #38 from encryption4all/fix/use-hosted-checkmark-image
feat(envelope): use hosted checkmark.png in Sent by section
2 parents 37ac49a + 5b5d799 commit aad433b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/email/envelope.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export async function createEnvelope(options: CreateEnvelopeOptions): Promise<En
7979
const messageSection = unencryptedMessage
8080
? buildUnencryptedSection(unencryptedMessage)
8181
: '';
82+
const checkmarkUrl = `${websiteUrl}/checkmark.png`;
8283

8384
const htmlBody = `<!DOCTYPE html>
8485
<html lang="en">
@@ -109,7 +110,7 @@ export async function createEnvelope(options: CreateEnvelopeOptions): Promise<En
109110
</div>
110111
<div style="margin-top:40px;padding-top:30px;border-top:1px solid #C6E2F6;text-align:center;">
111112
<p style="font-size:13px;color:#5F7381;margin:0 0 6px 0;">Sent by</p>
112-
<p style="font-size:15px;font-weight:700;color:#030E17;margin:0 0 12px 0;">${escapeHtml(from)}</p>${buildAttributePills(senderAttributes)}
113+
<p style="font-size:15px;font-weight:700;color:#030E17;margin:0 0 12px 0;"><img src="${checkmarkUrl}" alt="" width="14" height="12" style="vertical-align:middle;margin-right:6px;display:inline-block;" />${escapeHtml(from)}</p>${buildAttributePills(senderAttributes)}
113114
</div>
114115
</div>
115116
<div style="height:40px;"></div>

0 commit comments

Comments
 (0)