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

[PHP] Sending attachments via mail()

2001-05-11 Thread Matt Adams
Hello 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? Thanks Matt -- Matt Adams <[EMAIL PROTECTED]> Service Technician, Altair Electronics Voice <613.384.3876> FreeBSD/OpenBSD/

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