PHP Forums Archive

multiple attachment using php

Tags: mail, multi upload, attachments

zainul posted on 2008-02-16 06:39:18 #

how to send mail with multiple files attached.

Comments / discussions

Olaf posted on 2008-02-16 07:05:50 #

Quote from: zainul
"how to send mail with multiple files attached."

check this script:
http://www.finalwebsites.com/snippets.php?id=41

or just use phpmailer

aaaaaa posted on 2008-02-18 00:13:29 #

Simply i just want to send mail using php mail function.
Please tell me any mail server required or any hosting is required .
and what kind of setting i will made in php.ini file to send
mail using php

Olaf posted on 2008-02-18 05:09:22 #

You need a script to do that, the easiest way should be phpmailer (read their manual)

hosam76 posted on 2009-09-11 12:10:47 #

hi
I had the same problem
I success to use the attach mailer for single file
but I want to know how to allow the user to sent more than one file (for example 5 files)
at the example(upload_and_mail_example)
there are only one field to chose the uploaded files
so how can we make them more ????

Olaf posted on 2009-09-11 12:50:01 #

Please don't double post.

you can use the multi upload class with the attachment mailer class.

Come back later I will post some simple code/tutorial here (I need you to test the code ;) )

Olaf posted on 2009-09-11 13:55:12 #

Check this php multi attachments tutorial and let me know if it works for you.