Sending emails with attachments
# sends some text and some.gif to sven@devcon.net
mail ("sven@devcon.net",
"ILOVEYOU",
rfc2110_attachment ("Worx.\n", "text/plain; charset=ISO-8859-1") .
rfc2110_file ("some.gif", "image/gif") .
rfc2110_tail (),
rfc2110_header ("centralservices@devcon.net"));
string rfc2110_attachment ($content, $type, $encoding = 0, $contentid = 0);
string rfc2110_header ($fromemail);
string rfc2110_file ($filename, $type);
string rfc2110_boundary ();