If you check the documentation for the 'mail' function:

http://www.php.net/manual/en/function.mail.php

You'll see that it points to these references:

http://www.zend.com/zend/spotlight/sendmimeemailpart1.php
http://pear.php.net/package-info.php?pacid=21

Which explain how to use the 'mail' function to send multipart MIME messages... in other words, emails with attachments. Its kind of a pain to assemble it all by hand like the Zend article shows, so I'd use the PEAR code. Still... its an interesting read.

--

Brian 'Bex' Huff
[EMAIL PROTECTED]
Phone: 952-903-2023
Fax: 952-829-5424


hi,

can any body tell that what directive or headers should be used in
the mail function if i want to send an attachment via email,

i have simple email composer form with SendTo, SendFrom,Subject ,
Body and Attachment(input type=file) Fields
and server side form, where i get all the fields. and then send the
email.

thanx in advance



--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to