Re: [PHP] Sending attachments via mail()

2001-05-11 Thread Sean Cazzell
> I have some jpgs I'd like to send as attachments with automatically > generated (via PHP) e-mails. Does anyone have any suggestions as to how > I might go about this? Check this out: http://www.zend.com/codex.php?id=103&single=1 Regards, Sean -- PHP General Mailing List (http://www.php.n

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
You have to open the file and encode it. Check out this: FitnessQuest FTP user request form - results FAILED!"; print "This form can't be sent! You did not fill the form out completely!The email address is missing!"; print "Please click the back button and fill in the email address";