Re: Emailing attachments upload to a form
| From: | Mike Eheler | Date: | Tue, 11 Dec 2001 19:35:46 +0000 |
| Subject: | Re: Emailing attachments upload to a form | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-77333@lists.php.net to get a copy of this message | ||
Yeah.. code to divide the message into multiple parts, base64_encode the file, and attach it that way.
I suggest looking for some kind of Email class that can do that for you. Try http://phpclasses.upperdesign.net/
Mike
Ben Clumeck wrote:
When I use the script to upload an attachment to my form it does not email the attachment. I am using the mail() function to email the results of the form to me. Is there any other code I need to put in my mail() function to make this work, if so where would I put it? I am currently using the following code: <? mail ("me@mydomain.com", "Form Results", "Name: $name\nMessage: $message\nAttachment: $attachment", "From: $fromemail"); ?> Thanks, Ben