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

System crashes when SMPT activated.


  1. rscott7706
    Member

    If I do not activate SMTP, the system works fine, posts the form to database, forwards user to PayPal screen, but does not email me a copy of my form.

    If I activate SMTP, it crashes everything - the form posts to the database, but nothing else. I don't get forwarded to PayPal and no email copy.

    I have tried two different E-mails for SMPT and the same thing happens.

    SMTP settings for Gmail:

    Gmail SMTP server address: smtp.gmail.com
    Gmail SMTP user name: My full Gmail Email name
    Gmail SMTP password: My Gmail password
    Gmail SMTP port: 465
    Gmail SMTP TLS/SSL required: yes

    SMTP setings for Cox:
    Cox SMTP server address: smtp.west.cox.net
    Cox SMTP user name: My full Cox email name
    Cox SMTP password: My Cox password
    Gmail SMTP port: 25
    Gmail SMTP TLS/SSL required: no (I guessed at this one.)

    Here is the error code for Cox:

    [13-Mar-2012 22:53:54] PHP Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to smtp.west.cox.net:25 (Connection refused) in /home5/itltrfor/public_html/j251/machform/lib/swift-mailer/classes/Swift/Transport/StreamBuffer.php on line 271
    [13-Mar-2012 22:53:54] PHP Fatal error: Uncaught exception 'Swift_TransportException' with message 'Connection could not be established with host smtp.west.cox.net [Connection refused #111]' in /home5/itltrfor/public_html/j251/machform/lib/swift-mailer/classes/Swift/Transport/StreamBuffer.php:273
    Stack trace:
    #0 /home5/itltrfor/public_html/j251/machform/lib/swift-mailer/classes/Swift/Transport/StreamBuffer.php(66): Swift_Transport_StreamBuffer->_establishSocketConnection()
    #1 /home5/itltrfor/public_html/j251/machform/lib/swift-mailer/classes/Swift/Transport/AbstractSmtpTransport.php(116): Swift_Transport_StreamBuffer->initialize(Array)
    #2 /home5/itltrfor/public_html/j251/machform/lib/swift-mailer/classes/Swift/Mailer.php(79): Swift_Transport_AbstractSmtpTransport->start()
    #3 /home5/itltrfor/public_html/j251/machform/includes/helper-functions.php(563): Swift_Mailer->send(Object(Swift_Message))
    #4 /home5/itltrfor/public_html/j251/machform/includes/post-functions.php(2101): mf_send_notification(Object(PDO), 5, 5, 'rscott7706@gmai...', Array)
    #5 /home5 in /home5/itltrfor/public_html/j251/machform/lib/swift-mailer/classes/Swift/Transport/StreamBuffer.php on line 273

    I hope someone can help.

    Ron

    Posted 12 years ago #
  2. alecd4
    Member

    I ran into the same problem.
    Uncaught exception 'Swift_TransportException' with message 'Connection could not be established with host ...
    The code doesn't handle this exception. I believe this must be fixed to let the application to continue. In fact, even if SMTP parameters are correct once in a while connection may fail.

    Check your SMTP parameters. I believe Gmail operates on port 587.

    Posted 12 years ago #
  3. casidougal
    Member

    I'm having this same problem. Using gmail. All my settings are correct.

    Posted 12 years ago #
  4. yuniar

    Can you paste the error message please? Or send it via our contact form if you don't want to post it here.
    http://www.appnitro.com/contact


    MachForm Founder

    Posted 12 years ago #

RSS feed for this topic

Reply