The fix below is provided by McLausky - works fine.
Hi, I had the "could not instantiate" problem as well and after reading this thread here is what worked for me :-
The simple php mail scripts worked ok.....
In method MailSend in class.phpmailer.php:-
if ($this->Sender != "" && strlen(ini_get("safe_mode"))< 1)
The object attribute "Sender" is blank so this portion of code is skipped (the safemode check appears to test whether safemode is not set - (it is set on my system so this skips even if I instantiated the Sender attribute in eform.inc.php)
So I grabbed the sendmail_from parameter and used that in the else block
else
// amended lines added by CMD 15July08 needs a valid from address in mailto
$old_from = ini_get("sendmail_from");
$headers = ’From: ’ . $old_from . "\r\n" .
’Reply-To: ’ . $old_from . "\r\n" .
’X-Mailer: PHP/’ . phpversion();
$rt = @mail($to, $this->EncodeHeader($this->Subject), $body, $headers);
Ultimately my server didn’t like the format of the @mail call either in the initial ’If’ block or the ’else’ block and that reason is beyond my limited knowledge!