FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Mail attachment script???





bladesage
Hi! I'm getting better and better every day at php, but now that I made a totally awesome form handler, I can't have a space-efficient file support system for it. I can do a file upload script, but that would cost quite a bit of disk space.

Is there a way to have it automatically attach a file with the mail() function?
kv
You can. But there is no simple way. You have to send the attachment as headers in a multipart mime message. I would give you an example, but you will get a lot of them at http://fr2.php.net/mail.
bladesage
kv wrote:
You can. But there is no simple way. You have to send the attachment as headers in a multipart mime message. I would give you an example, but you will get a lot of them at http://fr2.php.net/mail.


There are a lot of examples there, but none of them are what I'm looking for Sad.

None of those examples (I saw) help me with what I'm looking for. If you could give me an example, or link me to one of those that does have what I'm looking for, that sure would help.
kv
Here is a utility class that can do the job for you. Subscribe, login, download and use it. http://www.phpclasses.org/browse/file/7334.html
jayzee
could it be done with simple PHP.....????
Related topics
My Mailer Script
Arts - Just take a look
MS Discloses Limited WMF Vulnerability
Form Mail help........lol
PHP Form Question
Email problem
Spyware and Malwares Removal Tips
Oil and Gas Job Search Online for Fruitful Results
Looking for easy FormMail Script
question about mail a friend script
Send large file attachment through e-mail
Looking for an email/attachment form script
Need Help. Post - Mail script failure
Web e-mail !
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.