GithubHelp home page GithubHelp logo

Comments (3)

dmcfaul avatar dmcfaul commented on August 30, 2024

Is this issue going to be looked at? I have the same issue. The connection times out, would be nice if there was a reconnect method that I could use when this is thrown.

from swiftmailer-bundle.

dmcfaul avatar dmcfaul commented on August 30, 2024

looks like if you do a:
$mailer->getTransport()->stop();
Swiftmailer will then reconnect automatically. So just catch the Exception in a try/catch and then stop and retry sending.

from swiftmailer-bundle.

kgreen169 avatar kgreen169 commented on August 30, 2024

It's 2018 and I am having this exact same problem. I have tried multiple ways to get around this error. Here is my latest
try {
$sendSuccess .= $mailer->send($message, $failedRecipients);
} catch (Swift_TransportException $ste) {
$mailSuccess .= "
Caught Swift_TransportException ste calling mailer->send
";
$mailSuccess .= $ste->getMessage();
$mailSuccess .= "
End ste->getMessage. Stoping transport
";
$mailer->getTransport()->stop();
$sendSuccess .= $mailer->send($message, $failedRecipients);
}
not sure if I am using ->stop correctly

Still got exception
Expected response code 250 but got code "421", with message "421 4.7.0 Try again later, closing connection. (MAIL) k130-v6sm1483348itb.0 - gsmtp "\

from swiftmailer-bundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.