I've been using Machform for years with no problems.
A few days ago a customer lets me know that the form isn't submitting and redirecting to Paypal to make payment. On further investigation, the form IS sending emails to both myself and the customer on submission but then doesn't redirect to Paypal, instead turning blank/white after about thirty seconds. Machform error log is:
[18-May-2022 17:02:46 Europe/London] PHP Fatal error: Uncaught Swift_IoException: Connection to mydomain.com:465 Timed Out in mydomain.com/public_html/machform/lib/swift-mailer/classes/Swift/Transport/StreamBuffer.php:169
Stack trace:
#0 mydomain.com/public_html/machform/lib/swift-mailer/classes/Swift/Transport/AbstractSmtpTransport.php(400): Swift_Transport_StreamBuffer->readLine(0)
#1 mydomain.com/public_html/machform/lib/swift-mailer/classes/Swift/Transport/AbstractSmtpTransport.php(291): Swift_Transport_AbstractSmtpTransport->getFullResponse(0)
#2 mydomain.com/public_html/machform/lib/swift-mailer/classes/Swift/Transport/AbstractSmtpTransport.php(119): Swift_Transport_AbstractSmtpTransport->readGreeting()
#3 mydomain.com/public_html/machform/lib/swift-mailer/classes/Swift/Mailer.php(80): Swift_Transport_AbstractSmtpTransport->start()
in mydomain.com/public_html/machform/lib/swift-mailer/classes/Swift/Transport/StreamBuffer.php on line 169
Switching off emails solves the problem (but no emails sent), switching off current smtp settings (i.e., using the php mailer) solves the problem but with a delay between hitting submit and the redirection to Paypal (but not throwing up any errors).
Any suggestions - the current solution of switching smtp off isn't great because of the delay. On Machform v18 with server running php v7.4.