if (DI::config()->get('phpmailer', 'smtp')) {
// Set mailer to use SMTP
$mailer->isSMTP();
if (DI::config()->get('phpmailer', 'smtp')) {
// Set mailer to use SMTP
$mailer->isSMTP();
// Specify main and backup SMTP servers
$mailer->Host = DI::config()->get('phpmailer', 'smtp_server');
$mailer->Port = DI::config()->get('phpmailer', 'smtp_port');
// Specify main and backup SMTP servers
$mailer->Host = DI::config()->get('phpmailer', 'smtp_server');
$mailer->Port = DI::config()->get('phpmailer', 'smtp_port');