mirror of
https://github.com/jhillyerd/inbucket.git
synced 2026-01-09 04:31:55 +00:00
Set content-type properly on MailboxHtml handler
- Changes to upstream go.enmime help with #20 - Setting content-type is required so that browsers correclty render docs that don't include an <html> element.
This commit is contained in:
25
swaks-tests/mime-html.raw
Normal file
25
swaks-tests/mime-html.raw
Normal file
@@ -0,0 +1,25 @@
|
||||
Date: %DATE%
|
||||
To: %TO_ADDRESS%
|
||||
From: %FROM_ADDRESS%
|
||||
Subject: Swaks HTML
|
||||
MIME-Version: 1.0
|
||||
Content-Type: multipart/alternative; boundary="----=_MIME_BOUNDARY_000_62717"
|
||||
|
||||
------=_MIME_BOUNDARY_000_62717
|
||||
Content-Type: text/plain
|
||||
|
||||
This is a test mailing.
|
||||
|
||||
This should be clickable: http://google.com/
|
||||
|
||||
------=_MIME_BOUNDARY_000_62717
|
||||
Content-Type: text/html
|
||||
Content-Transfer-Encoding: BASE64
|
||||
|
||||
PGh0bWw+Cjxib2R5Pgo8cD5UaGlzIGlzIGEgdGVzdCBtYWlsaW5nIDxiPmluIEhUTUw8L2I+PC9w
|
||||
PgoKPHA+VGhpcyBzaG91bGQgYmUgY2xpY2thYmxlOiA8YSBocmVmPSJodHRwOi8vZ29vZ2xlLmNv
|
||||
bS8iPmdvb2dsZS5jb208L2E+PC9wPgo8L2JvZHk+CjwvaHRtbD4K
|
||||
|
||||
------=_MIME_BOUNDARY_000_62717--
|
||||
|
||||
|
||||
Reference in New Issue
Block a user