- tell PHPMailer to throw Exceptions so we can catch them, fixes #298

This commit is contained in:
Michael Kaufmann (d00p)
2010-07-22 05:28:21 +00:00
parent 4eb177e65f
commit edc7a91519

View File

@@ -430,7 +430,7 @@ if($page == '')
/** /**
* Initialize the mailingsystem * Initialize the mailingsystem
*/ */
$mail = new PHPMailer(); $mail = new PHPMailer(true);
if(PHPMailer::ValidateAddress($settings['panel']['adminmail']) !== false) if(PHPMailer::ValidateAddress($settings['panel']['adminmail']) !== false)
{ {
// set return-to address and custom sender-name, see #76 // set return-to address and custom sender-name, see #76