- tell PHPMailer to throw Exceptions so we can catch them, fixes #298
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user