This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 3

Get this error message when people try to submit form. Any ideas how to fix it?


  1. brookeallisonphotography
    Member

    Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to localhost:25 (Connection refused) in /home/brooke/public_html/machform/lib/swift-mailer/classes/Swift/Transport/StreamBuffer.php on line 271

    Fatal error: Uncaught exception 'Swift_TransportException' with message 'Connection could not be established with host localhost [Connection refused #111]' in /home/brooke/public_html/machform/lib/swift-mailer/classes/Swift/Transport/StreamBuffer.php:273 Stack trace: #0 /home/brooke/public_html/machform/lib/swift-mailer/classes/Swift/Transport/StreamBuffer.php(66): Swift_Transport_StreamBuffer->_establishSocketConnection() #1 /home/brooke/public_html/machform/lib/swift-mailer/classes/Swift/Transport/AbstractSmtpTransport.php(116): Swift_Transport_StreamBuffer->initialize(Array) #2 /home/brooke/public_html/machform/lib/swift-mailer/classes/Swift/Mailer.php(79): Swift_Transport_AbstractSmtpTransport->start() #3 /home/brooke/public_html/machform/includes/helper-functions.php(759): Swift_Mailer->send(Object(Swift_Message)) #4 /home/brooke/public_html/machform/includes/post-functions.php(2192): mf_send_notification(Object(PDO), 12667, 36, 'brookeallisonph...', Array) #5 /home/brooke/public_html/machform/embed.php(35): mf_proce in /home/brooke/public_html/machform/lib/swift-mailer/classes/Swift/Transport/StreamBuffer.php on line 273

    Posted 11 years ago #
  2. yuniar

    Try to disable the SMTP settings on your MachForm or make sure you have the correct SMTP server address. It seems you have configured the "SMTP server" to "localhost" which causing the error.


    MachForm Founder

    Posted 11 years ago #

RSS feed for this topic

Reply