> 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
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/
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
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: [
$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|"
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
6 matches
Mail list logo