View Single Post
  #4  
Old 04-09-2010, 08:07 AM
Scott is offline Scott
Scott's Avatar
AKA. Panther

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

The error explains exactly what the problem was:
Code:
Warning:Missing argument 3 for pattach(), called in /home/public_html/phMailer.php on line 258 and defined in /home/stroud/public_html/phMailer.php on line 121
The bug in your script comes from this line (258):
PHP Code:
$message.=phattach($_FILES['attachment']['tmp_name'][$i],$_FILES['attachment']['name'][$i]); 
It should be like this:
PHP Code:
$message.=phattach($_FILES['attachment']['tmp_name'][$i], $_FILES['attachment']['name'][$i], $boundary); 
For your other issue, you can add a third array and use that to change the actual subject.

Eg.
PHP Code:
$subjects=array("Select A Secretary""Cup Competitons""Ladies Sections""Mixed League / Cup""Sections A, D and E""Sections B, C and E");
$real_subjects=array("Select A Secretary""Result Card For Cup Competitons""Result Card For Ladies Sections""Result Card For Mixed League / Cup""Result Card For Sections A, D and E""Result Card For Sections B, C and E"); 
Then, on line 219:
PHP Code:
$emailsubject=$real_subjects[$emailsubject]; 
__________________

04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq
Reply With Quote