View Single Post
  #1  
Old 09-05-2010, 07:06 AM
Idiotsavant is offline Idiotsavant
Registered User

Join Date: Sep 2010
Posts: 3

PHmailer with 7 attachments getts error message and text but not attachments in email sent

Hi I have tried, but because the example phmailer script does not use 2 ( or more) attachments I don't know how to modify it to work where I need up to seven attachments with max file size 500 ie total 5000?

Any help to fix the code please as I get the text but not the attachments via email. I know it says do not edit below a point but I had to do that to get this far - apologies if I stuffed it.
Cheers


error message is :
Warning: array_sum(): The argument should be an array in /u/3/8/1833183/artsite.com.au/phMailer.php on line 157

I have attached the phmailer code file and

below is the code for the attach file box(?) (from the actual page that calls the phmailer file)

<td height="25" class="text">Image 1:</td>
<td class="text"><input name="attachment[]2" type="file" size="30" /></td>
</tr>
<tr>
<td height="25" class="text">Image 2:</td>
<td class="text"><input name="attachment[]3" type="file" size="30" /></td>
</tr>
<tr>
<td width="20%" height="25" class="text">Image 3:</td>
<td width="80%" class="text"><input name="attachment[]4" type="file" size="30" /></td>
</tr>
<tr>
<td height="25" class="text">Image 4:</td>
<td class="text"><input name="attachment[]5" type="file" size="30" /></td>
</tr>

<tr>
<td height="25" class="text">Image 5:</td>
<td class="text"><input name="attachment[]6" type="file" size="30" /></td>
</tr>


<tr>
<td width="20%" height="25" class="text">Image 6:</td>
<td width="80%" class="text"><input name="attachment[]7" type="file" size="30" /></td>
</tr>
<tr>
<td width="20%" height="25" class="text">Attach CV:</td>
<td width="80%" class="text"><input name="attachment[]" type="file" size="30" /></td>
</tr>
Attached Files
File Type: txt phmailer5sept10.txt (8.7 KB, 3 views)
Reply With Quote