PEAR has a class which may be helpful.
http://pear.php.net/package/Mail_Mime
On Thursday 23 October 2003 04:13 am, Don Mc Nair wrote:
> Hi
>
> Can anyone tell me how to add a file as an attachment to an email sent with
> something like the following ?
>
> $headers = "From: <".$fromaddress.">\
Hi
Can anyone tell me how to add a file as an attachment to an email sent with
something like the following ?
$headers = "From: <".$fromaddress.">\r\n";
$headers .= "Reply-To: <$fromaddress>\r\n";
mail($toaddress, $subject, $mailcontent, $headers);
Thanks
Don
---
Outgoing mail is certifie
D]>
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
>
>
> ___
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 4:11 AM
To: [EMAIL PROTECTED]
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
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 Mailin
Thank you Michael. I will look for mime_mail classes.
"Michael Hall" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> I'm not sure about including them in the mail function as such, but it can
> certainly be done using one of several mime_mail classes that ar
I'm not sure about including them in the mail function as such, but it can
certainly be done using one of several mime_mail classes that are around.
I don't have one handy right now but you can find them by searching the
php archives
and/or the annotated php manual. I know the one by Schumann and
Is there anyway to include attachments in mail() function?
If you give a small example, it will be great.
Thanks
--
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,
8 matches
Mail list logo