Sending mails with multiple attachments
Here going to show you how to send mails with multiple attachments (It can be any type)
I was looking for a custom script which can bale to send multiple image/zip files but unfortunately
i couldnot find exactly what i was needed, so then i made this and here i made a tutor to show you a example.
I think many of you needed to send mails with attachments so you can utilize this script by just including the three files into your script and
changing the parameters. Check the demo and you can grab from download link.
By using this custom PHP script you can send multiple image/pdf/zip or what ever file formats you like you can send to the mail id’s by browse and upload or by specifying the image location on your server.
I made three faces of form to get input from user to send mail to admin with their attachments, So this is the first face which gets mail id,name
And here is the second step which gets your address to send to admin
And here is the final step where user can browse and send their files,
you can include any number of files, file types by adjusting the parameters in mail.php.
For to use this your server should be enabled “allowed upload”,
so depends on your allowed file,post size the upload script will work
As you can see you can add N number of file attachments here to get input from user, check the script,
also you can change it to use it with ajax, i also attached a ajax way mail sending.
Thanks to Ewen Elder <email@example.com>, Here i used his mailing class to send mail with attachments.
Here i have attached the copy of the working files so you can grab and use it in your projects.
Happy coding -:)
do post your comments please.
About the Author:
Leave a Reply
You must be logged in to post a comment.