I try to send email with the smtp protocol.
This is my code :
Code: Select all
$transport = Swift_SmtpTransport::newInstance('mail.bluelogic.fr', 25)
->setUsername('guillaume')
->setPassword('girouette');
//On instancie le mail
$mail = Swift_Message::newInstance($transport)
->setFrom($this->form->getValue('email'))
->setTo('88666@supinfo.com')
->setSubject($this->form->getValue('subject'))
->setBody($this->form->getValue('message'));
//Envoi du mail
$result = $transport->send($mail);Code: Select all
500 | Internal Server Error | Swift_TransportException
Expected response code 250 but got code "", with message ""Thanks for tour answer !