You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It'd be nice if they accepted html and text properties that, such that if both are specified simultaneously, a multipart/alternative email body is used (see below).
It should be easy to add this too, and wouldn't require a breaking version bump, until you deprecate body someday.
Example
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="boundary_string"
--boundary_string
Content-Type: text/plain; charset=UTF-8
This is the plain text version of the email.
--boundary_string
Content-Type: text/html; charset=UTF-8
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Email Title</title>
</head>
<body>
<p>This is the HTML version of the email.</p>
</body>
</html>
--boundary_string--