Skip to content

Instantly share code, notes, and snippets.

@smfreegard
Created November 30, 2012 21:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smfreegard/4178792 to your computer and use it in GitHub Desktop.
Save smfreegard/4178792 to your computer and use it in GitHub Desktop.
multipart bannering
Subject: multipart test
Content-Type: multipart/mixed; boundary=--=_boundary_1
MIME-Version: 1.0
prolog
----=_boundary_1
Content-Type: multipart/alternative; boundary=--=_boundary_2
----=_boundary_2
Content-Type: text/plain
Hello world
----=_boundary_2
Content-Type: text/html
<html><body><b>Hello world</b></body></html>
----=_boundary_2--
----=_boundary_1
Content-Type: multipart/alternative; boundary=--=_boundary_3
----=_boundary_3
Content-Type: text/plain
This is the text banner.
----=_boundary_3
Content-Type: text/html
<html><body><b>This is the HTML banner.</b></body></html>
----=_boundary_3--
----=_boundary_1--
epilogue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment