I recommend sending yourself a mail with an attachment and check the sourcecode of the received mail... together with base64encode() you should be able to do the job...
Edward ----- Original Message ----- From: "Rafael Perazzo B Mota" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, January 30, 2002 3:11 AM Subject: [PHP] Attachments with mail() function > How can I send a simple file as attachment using the mail function ? > Can anyone give me a simple example ? > > Thanks > > Rafael Perazzo > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]