1 2 3 4 5 6 7 8 9 10 11 12 13
--$mimeboundary Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 $textbody --$mimeboundary Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: base64 $htmlbody --$mimeboundary--