--$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--