Jump to content
Sign in to follow this  

Configuration SMTP swiftmailer

Recommended Posts



Cela fait quelques jours que j'essaye de configurer une fonction de mot de passe oublié sur mon site, j'utilise swiftmailer, un hébergement web cloudfordream.

J'ai donc créer une adresse email roundcube depuis le plesk, [email protected]

Voici la configuration que j'utilise :

    const mailHost      = 'webmail.monsite.fr';
    const mailFrom      = '[email protected]';
    const mailUser      = '[email protected]';
    const mailPass      = 'MOT DE PASSE';
    const mailPort      = 587;


Voici la log que je reçois quand je fait une demande de mot de passe oublier

Fatal error: Uncaught Swift_TransportException: Expected response code 250 but got code "530", with message "530 5.7.0 Must issue a STARTTLS command first " in /var/www/vhosts/monsite.fr/httpdocs/Cosmic/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php:457 Stack trace: #0 /var/www/vhosts/monsite.fr/httpdocs/Cosmic/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(341): Swift_Transport_AbstractSmtpTransport->assertResponseCode('530 5.7.0 Must ...', Array) #1 /var/www/vhosts/monsite.fr/httpdocs/Cosmic/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/EsmtpTransport.php(305): Swift_Transport_AbstractSmtpTransport->executeCommand('MAIL FROM:<pass...', Array, Array, false, NULL) #2 /var/www/vhosts/monsite.fr/httpdocs/Cosmic/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php(390): Swift_Transport_EsmtpTransport->executeCommand('DATA\r\n', Array, Array) #3 /var/www/vhosts/monsite.fr/httpdocs/Cosmic/vendor/swiftmailer in /var/www/vhosts/monsite.fr/httpdocs/Cosmic/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php on line 457

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this