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"));
      

rfc2110_attachment ()

string rfc2110_attachment ($content, $type, $encoding = 0, $contentid = 0);
        

rfc2110_header ()

string rfc2110_header ($fromemail);
        

rfc2110_file ()

string rfc2110_file ($filename, $type);
        

rfc2110_tail ()

string rfc2110_tail ();
        

rfc2110_boundary ()

string rfc2110_boundary ();