Re: [PHP] sending attachments via mail(), possible?

2001-05-09 Thread Christian Dechery
At 15:17 9/5/2001 -0400, Tym Rehm wrote: >You have to open the file and encode it. >Check out this: > >/* Define the attachment and encode it base64 */ >$filename="/var/www/sf/Ftp_User_Info.doc"; $fd = fopen($filename, "r"); >$contents = fread($fd, filesize($filename)); >$encoded=chunk_split(ba

RE: [PHP] sending attachments via mail(), possible?

2001-05-09 Thread Benjamin Munoz
t;add_attachment($data, $file_name, $file_mime_type); // send e-mail $mail->send(); Look in phpclasses.upperdesign.com or search in Google. -Ben -Original Message- From: Tym Rehm [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 09, 2001 12:18 PM To: [EMAIL PROTECTED] Subject: Re: [

Re: [PHP] sending attachments via mail(), possible?

2001-05-09 Thread Tym Rehm
$not_headers .= "Mime-Version: 1.0\n"; $not_headers .= "Content-Type: multipart/mixed; boundary=\"$border\"\n"; /* Send Notice email to distribution list */ /* Diag testing */ # print "|$line[$i]|"; # print "|$not_sub|"; # print "|$not_mess|"

[PHP] sending attachments via mail(), possible?

2001-05-09 Thread Christian Dechery
Is it possible to send attachments via mail() function? I tried it, and it didn't work out... the email I receive is all messed up, and even the simple text part of it is screwed up. I now very little about MIME, but I really need to send an attachment, any help? It's a text attachment... Thi