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

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 4

PHP Fatal error when sending notification email


  1. gpeters
    Member

    I have recently installed machform 4.1 on my company's web server. It works great with one exception, the email notifications are not working and I cannot figure out why. I tried to use the php mail function first, but it would not work. It kept coming back with the following error:

    Error! Unable to send entry.
    Error message: error sending email!{"status" : "ok"}

    After this I tried to get it working with our own smtp server, but did not have luck with that either. When sending an email I get the following error using this method:

    PHP Fatal error: Uncaught exception 'Swift_TransportException' with message 'Connection could not be established with host
    pcsd-mets [A connection attempt failed because the connected party did not properly respond after a period of time, or established
    connection failed because connected host has failed to respond.

    #10060]' in D:\Inetpub2\PCSDMA\machform\lib\swift-mailer\classes\Swift\Transport\StreamBuffer.php:259
    Stack trace:

    #0 D:\Inetpub2\PCSDMA\machform\lib\swift-mailer\classes\Swift\Transport\StreamBuffer.php(64):
    Swift_Transport_StreamBuffer->_establishSocketConnection()

    #1 D:\Inetpub2\PCSDMA\machform\lib\swift-mailer\classes\Swift\Transport\AbstractSmtpTransport.php(115):
    Swift_Transport_StreamBuffer->initialize(Array)

    #2 D:\Inetpub2\PCSDMA\machform\lib\swift-mailer\classes\Swift\Mailer.php(80): Swift_Transport_AbstractSmtpTransport->start()

    #3 D:\Inetpub2\PCSDMA\machform\includes\helper-functions.php(670):
    Swift_Mailer->send(Object (Swift_Message))

    #4 D:\Inetpub2\PCSDMA\machform\lib\swift-mailer\classes\Swift\Transport\StreamBuffer.php on line 259

    Please help me!

    Posted 11 years ago #
  2. yuniar

    It seems you are using WIndows server and the PHP mail function doesn't seems to be working properly (most likely the mail transfer agent is not being configured on your server yet).

    It should be easier to use SMTP server. In this case, I see that you are using "pcsd-mets" as the SMTP host.
    Try to change this with IP address. Your website server doesn't seems able to connect to the SMTP server using the above hostname.


    MachForm Founder

    Posted 11 years ago #
  3. gpeters
    Member

    I tried with the ip address of the smtp server as well and I still get the same error message aside from it saying the ip address rather than pcsd-mets.

    Posted 11 years ago #

RSS feed for this topic

Reply