After googling several posts about how to add and send multiple email attachments using PHP, I found it was uneasy to accomplish it by using the methods from top 20 results on google, either they can show the attachments properly nor can be recognized correctly by gmail. Finally the following codes can correctly add multiple attachments in email.
1. If you want to use array, use the following codes in your html file:
<input type='file' name='uploadedFile[]’ />
Continue reading