-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #102 from genkgo/fix_double_html_content
when a message contains multiple html parts, extract the first one
- Loading branch information
Showing
3 changed files
with
52 additions
and
1 deletion.
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
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,29 @@ | ||
Subject: Hello World | ||
From: me <[email protected]> | ||
To: you <[email protected]> | ||
Cc: other <[email protected]> | ||
MIME-Version: 1.0 | ||
Content-Type: multipart/alternative; boundary=GenkgoMailV2Part187e28bf3cb4 | ||
|
||
This is a multipart message in MIME format. | ||
|
||
--GenkgoMailV2Part187e28bf3cb4 | ||
Content-Type: text/plain; charset=UTF-8 | ||
Content-Transfer-Encoding: 7bit | ||
Hello World | ||
--GenkgoMailV2Part187e28bf3cb4 | ||
Content-Type: text/html; charset=UTF-8 | ||
Content-Transfer-Encoding: 7bit | ||
|
||
<html><head><meta http-equiv="Content-Type" content="text/html; | ||
charset=UTF-8"/></head><body><p>Hello World</p></body></html> | ||
|
||
--GenkgoMailV2Part187e28bf3cb4 | ||
Content-Type: text/html; charset=UTF-8 | ||
Content-Transfer-Encoding: 7bit | ||
|
||
<html><head><meta http-equiv="Content-Type" content="text/html; | ||
charset=UTF-8"/></head><body><p>Another Text</p></body></html> | ||
--GenkgoMailV2Part187e28bf3cb4-- |
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