$transport->setUsername($this->parameterBag->get('app.mail.login')); | $transport->setUsername($this->parameterBag->get('app.mail.login')); | ||||
} | } | ||||
if($this->parameterBag->get('app.mail.password')!="0"){ | if($this->parameterBag->get('app.mail.password')!="0"){ | ||||
$transport->setUsername($this->parameterBag->get('app.mail.password')); | |||||
$transport->setPassword($this->parameterBag->get('app.mail.password')); | |||||
} | } | ||||
$mailer = new \Swift_Mailer($transport); | $mailer = new \Swift_Mailer($transport); |