Go Back   Novahq.net Forum > phphq.Net > phphq.Net Forums

Reply
 
Thread Tools Search this Thread Display Modes
  #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
  #2  
Old 09-05-2010, 12:30 PM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,919

More than likely, you need to increase these settings in your php.ini file:


post_max_size = 15M
upload_max_filesize = 15M
max_file_uploads = 20
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
  #3  
Old 09-05-2010, 04:43 PM
Idiotsavant is offline Idiotsavant
Registered User

Join Date: Sep 2010
Posts: 3

Clarification

Thanks but for clarification:
Is all the code correct?
If so then
Do I talk to my website hosting company for the php.ini file change?
Cheers
Reply With Quote
  #4  
Old 09-07-2010, 08:21 AM
Scott is offline Scott
Scott's Avatar
AKA. Panther

Join Date: Sep 2001
Location: Minneapolis, MN
Posts: 10,919

It does not look correct.. there should be no number after the attachment[] for each form field.. Your hosting company will need to modify your php.ini file..
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote
  #5  
Old 09-08-2010, 06:02 PM
Idiotsavant is offline Idiotsavant
Registered User

Join Date: Sep 2010
Posts: 3

Thanks I will remove the numbers. The hosting tweak is more difficult so I am changing hosting company - may take a couple of days so I will test it again on new server and let you know. Appreciate the help. Cheers
Reply With Quote
Reply

Tags
phmailer+7atch=error+0att


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
phMailer email format problem Charlie phphq.Net Forums 11 01-23-2009 06:09 PM
attachments on phpbb forums? -Tigger- Web design and Programming 6 07-29-2007 02:38 PM
Problem w/ multiple attachments making the whole form repeat savantmg phphq.Net Forums 3 03-23-2006 03:04 PM
My Attachments Chrispy Sigs and Graphics 2 12-03-2005 10:00 PM
attachments? Trey phphq.Net Forums 1 05-22-2005 12:05 AM


All times are GMT -5. The time now is 08:32 AM.




Powered by vBulletin®