Buy Now
Sign in

mail error smtp connect

teldrive , September 08 2016
teldrive
i have detected mail smtp error after latest update
not sure about the cause of this
Teldrive
GreyHead
Hi teldrive,

What exactly is the problem?

I've seen a Joomla! bug with Reply To addresses (IIRC) in the latest versions, could that be the problem here?

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
teldrive
Hi Bob
i use joomla test in global-settings-servers and it works, so it seems CFv5 issue

i did a simple form that sent a test email

error I receive when executed is

Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
Teldrive
teldrive
I activated debug in CFv5 level 4 and obtained this
2016-09-16 06:43:56 Connection: opening to mail.congresoseden.es:25, timeout=300, options=array ( ) 2016-09-16 06:43:56 Connection: opened 2016-09-16 06:43:56 SMTP -> get_lines(): $data is "" 2016-09-16 06:43:56 SMTP -> get_lines(): $str is "220 server.mercaselect.com ESMTP Postfix " 2016-09-16 06:43:56 SERVER -> CLIENT: 220 server.mercaselect.com ESMTP Postfix 2016-09-16 06:43:56 CLIENT -> SERVER: EHLO congresoseden.es 2016-09-16 06:43:56 SMTP -> get_lines(): $data is "" 2016-09-16 06:43:56 SMTP -> get_lines(): $str is "250-server.mercaselect.com " 2016-09-16 06:43:56 SMTP -> get_lines(): $data is "250-server.mercaselect.com " 2016-09-16 06:43:56 SMTP -> get_lines(): $str is "250-PIPELINING " 2016-09-16 06:43:56 SMTP -> get_lines(): $data is "250-server.mercaselect.com 250-PIPELINING " 2016-09-16 06:43:56 SMTP -> get_lines(): $str is "250-SIZE 256000000 " 2016-09-16 06:43:56 SMTP -> get_lines(): $data is "250-server.mercaselect.com 250-PIPELINING 250-SIZE 256000000 " 2016-09-16 06:43:56 SMTP -> get_lines(): $str is "250-ETRN " 2016-09-16 06:43:56 SMTP -> get_lines(): $data is "250-server.mercaselect.com 250-PIPELINING 250-SIZE 256000000 250-ETRN " 2016-09-16 06:43:56 SMTP -> get_lines(): $str is "250-STARTTLS " 2016-09-16 06:43:56 SMTP -> get_lines(): $data is "250-server.mercaselect.com 250-PIPELINING 250-SIZE 256000000 250-ETRN 250-STARTTLS " 2016-09-16 06:43:56 SMTP -> get_lines(): $str is "250-AUTH DIGEST-MD5 LOGIN CRAM-MD5 PLAIN " 2016-09-16 06:43:56 SMTP -> get_lines(): $data is "250-server.mercaselect.com 250-PIPELINING 250-SIZE 256000000 250-ETRN 250-STARTTLS 250-AUTH DIGEST-MD5 LOGIN CRAM-MD5 PLAIN " 2016-09-16 06:43:56 SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES " 2016-09-16 06:43:56 SMTP -> get_lines(): $data is "250-server.mercaselect.com 250-PIPELINING 250-SIZE 256000000 250-ETRN 250-STARTTLS 250-AUTH DIGEST-MD5 LOGIN CRAM-MD5 PLAIN 250-ENHANCEDSTATUSCODES " 2016-09-16 06:43:56 SMTP -> get_lines(): $str is "250-8BITMIME " 2016-09-16 06:43:56 SMTP -> get_lines(): $data is "250-server.mercaselect.com 250-PIPELINING 250-SIZE 256000000 250-ETRN 250-STARTTLS 250-AUTH DIGEST-MD5 LOGIN CRAM-MD5 PLAIN 250-ENHANCEDSTATUSCODES 250-8BITMIME " 2016-09-16 06:43:56 SMTP -> get_lines(): $str is "250 DSN " 2016-09-16 06:43:56 SERVER -> CLIENT: 250-server.mercaselect.com 250-PIPELINING 250-SIZE 256000000 250-ETRN 250-STARTTLS 250-AUTH DIGEST-MD5 LOGIN CRAM-MD5 PLAIN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN 2016-09-16 06:43:56 CLIENT -> SERVER: STARTTLS 2016-09-16 06:43:56 SMTP -> get_lines(): $data is "" 2016-09-16 06:43:56 SMTP -> get_lines(): $str is "220 2.0.0 Ready to start TLS " 2016-09-16 06:43:56 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS 2016-09-16 06:43:56 SMTP Error: Could not connect to SMTP host. 2016-09-16 06:43:56 CLIENT -> SERVER: QUIT 2016-09-16 06:43:56 SMTP -> get_lines(): $data is "" 2016-09-16 06:43:56 SMTP -> get_lines(): $str is "K GA���/�;� " 2016-09-16 06:43:56 SMTP -> get_lines(): $data is "K GA���/�;� " 2016-09-16 06:43:56 SMTP -> get_lines(): $str is "4r����՘1��\���Y<�і�t��,��c$Y��4�����C�}�}7i�6���J"�n7�$�e�2&�*�{����#��c��g�����S%E����z�7�v�M,��ҿ�!�࿶TH@������o���ݗ�P�(,f���;C���� �|k�4�d<|. " 2016-09-16 06:43:56 SMTP -> get_lines(): $data is "K GA���/�;� 4r����՘1��\���Y<�і�t��,��c$Y��4�����C�}�}7i�6���J"�n7�$�e�2&�*�{����#��c��g�����S%E����z�7�v�M,��ҿ�!�࿶TH@������o���ݗ�P�(,f���;C���� �|k�4�d<|. " 2016-09-16 06:43:56 SMTP -> get_lines(): $str is "�.��*�I߹X)?Ѹ�*�DݽHr��"���Y�hu�3��<�D�/���՝�S�E�����J]3.#]t�mku�b��?���PL�oCF� +IVO#՚�`M2���8��F�T�F�qP�������dq4�� ��5" 2016-09-16 06:43:56 SERVER -> CLIENT: K GA���/�;� 4r����՘1��\���Y<�і�t��,��c$Y��4�����C�}�}7i�6���J"�n7�$�e�2&�*�{����#��c��g�����S%E����z�7�v�M,��ҿ�!�࿶TH@������o���ݗ�P�(,f���;C���� �|k�4�d<|. �.��*�I߹X)?Ѹ�*�DݽHr��"���Y�hu�3��<�D�/���՝�S�E�����J]3.#]t�mku�b��?���PL�oCF� +IVO#՚�`M2���8��F�T�F�qP�������dq4�� ��5 2016-09-16 06:43:56 SMTP ERROR: QUIT command failed: K GA���/�;� 4r����՘1��\���Y<�і�t��,��c$Y��4�����C�}�}7i�6���J"�n7�$�e�2&�*�{����#��c��g�����S%E����z�7�v�M,��ҿ�!�࿶TH@������o���ݗ�P�(,f���;C���� �|k�4�d<|. �.��*�I߹X)?Ѹ�*�DݽHr��"���Y�hu�3��<�D�/���՝�S�E�����J]3.#]t�mku�b��?���PL�oCF� +IVO#՚�`M2���8��F�T�F�qP�������dq4�� ��5 2016-09-16 06:43:56 Connection: closed 2016-09-16 06:43:56 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting 
Teldrive
teldrive
i don't know why but I changed mailing method from SMTP to sendmail and start to work
regards
Teldrive
GreyHead
Hi Teldrive,

The problem appears to be here
2016-09-16 06:43:56 SMTP -> get_lines(): $str is "220 2.0.0 Ready to start TLS " 
2016-09-16 06:43:56 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
2016-09-16 06:43:56 SMTP Error: Could not connect to SMTP host.
2016-09-16 06:43:56 CLIENT -> SERVER: QUIT

We saw something similar yesterday - see this section of the PHP Mailer docs.

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
M
microstudiosimone
Hi GreyHead,
I have same issue.
Website use php7 and SMTP for email.
I recieve joomla test email, but via chronoform I don't recieve anything.

I have also try to left empty chronoform SMTP settings and nothing changes.
I try as teldrive via SENDEMAIL but i get another error message:
Mailer Error: Could not execute: /usr/sbin/sendmail -t -i

Do you have any suggestion?
thx
Simone
GreyHead
Hi Simone,

Please see this FAQ. In particular make sure that the From Email address matches the site domain.

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
M
microstudiosimone
Hi Bob,
I'm testing other configuration.
I let to know soo all news (max 1h)

thx
Simone
M
microstudiosimone
Hello Bob,
I have complete the test.

I have download from github the PHPMailer, tryed with php7 and it doesn't send the testingmail, I get this for debug:
2016-11-10 16:38:03 Could not access file:
2016-11-10 16:38:03 Connection: opening to 164.138.67.191:25, timeout=300, options=array ( )
2016-11-10 16:38:03 Connection: opened
2016-11-10 16:38:03 SMTP -> get_lines(): $data is ""
2016-11-10 16:38:03 SMTP -> get_lines(): $str is "220 annuncimacchinariusati.com ESMTP Postfix (Ubuntu) "
2016-11-10 16:38:03 SERVER -> CLIENT: 220 annuncimacchinariusati.com ESMTP Postfix (Ubuntu)
2016-11-10 16:38:03 CLIENT -> SERVER: EHLO dev.adsusedmachinery.com
2016-11-10 16:38:03 SMTP -> get_lines(): $data is ""
2016-11-10 16:38:03 SMTP -> get_lines(): $str is "250-annuncimacchinariusati.com "
2016-11-10 16:38:03 SMTP -> get_lines(): $data is "250-annuncimacchinariusati.com "
2016-11-10 16:38:03 SMTP -> get_lines(): $str is "250-PIPELINING "
2016-11-10 16:38:03 SMTP -> get_lines(): $data is "250-annuncimacchinariusati.com 250-PIPELINING "
2016-11-10 16:38:03 SMTP -> get_lines(): $str is "250-SIZE 10240000 "
2016-11-10 16:38:03 SMTP -> get_lines(): $data is "250-annuncimacchinariusati.com 250-PIPELINING 250-SIZE 10240000 "
2016-11-10 16:38:03 SMTP -> get_lines(): $str is "250-VRFY "
2016-11-10 16:38:03 SMTP -> get_lines(): $data is "250-annuncimacchinariusati.com 250-PIPELINING 250-SIZE 10240000 250-VRFY "
2016-11-10 16:38:03 SMTP -> get_lines(): $str is "250-ETRN "
2016-11-10 16:38:03 SMTP -> get_lines(): $data is "250-annuncimacchinariusati.com 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN "
2016-11-10 16:38:03 SMTP -> get_lines(): $str is "250-STARTTLS "
2016-11-10 16:38:03 SMTP -> get_lines(): $data is "250-annuncimacchinariusati.com 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-STARTTLS "
2016-11-10 16:38:03 SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES "
2016-11-10 16:38:03 SMTP -> get_lines(): $data is "250-annuncimacchinariusati.com 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-STARTTLS 250-ENHANCEDSTATUSCODES "
2016-11-10 16:38:03 SMTP -> get_lines(): $str is "250-8BITMIME "
2016-11-10 16:38:03 SMTP -> get_lines(): $data is "250-annuncimacchinariusati.com 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-STARTTLS 250-ENHANCEDSTATUSCODES 250-8BITMIME "
2016-11-10 16:38:03 SMTP -> get_lines(): $str is "250 DSN "
2016-11-10 16:38:03 SERVER -> CLIENT: 250-annuncimacchinariusati.com 250-PIPELINING 250-SIZE 10240000 250-VRFY 250-ETRN 250-STARTTLS 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN
2016-11-10 16:38:03 CLIENT -> SERVER: STARTTLS
2016-11-10 16:38:03 SMTP -> get_lines(): $data is ""
2016-11-10 16:38:03 SMTP -> get_lines(): $str is "220 2.0.0 Ready to start TLS "
2016-11-10 16:38:03 SERVER -> CLIENT: 220 2.0.0 Ready to start TLS
2016-11-10 16:38:03 SMTP Error: Could not connect to SMTP host.
2016-11-10 16:38:03 CLIENT -> SERVER: QUIT
2016-11-10 16:38:03 SMTP -> get_lines(): $data is ""
2016-11-10 16:38:03 SMTP -> get_lines(): $str is "M IA��w�¿�����)f�����(z!j�ܐ弅#_�kU۱Ȳ���'���Wt�G�FRX�����*��e���)@X��{�<=� #Gd��;�����dG���cM�޷V3����P��r��ѦF<�^-�DE�4H�X�Èd�8������R$�%Mx�� "
2016-11-10 16:38:03 SMTP -> get_lines(): $data is "M IA��w�¿�����)f�����(z!j�ܐ弅#_�kU۱Ȳ���'���Wt�G�FRX�����*��e���)@X��{�<=� #Gd��;�����dG���cM�޷V3����P��r��ѦF<�^-�DE�4H�X�Èd�8������R$�%Mx�� "
2016-11-10 16:38:03 SMTP -> get_lines(): $str is "� ���ި�W��$��L�-��8Y1˖���%��_�me�S��^zȀ��<�2<9�j%�U��+͠ Nm����M�)-e�"���O̺S� Qt꒏7ƧP��V����s.���Z�^�KL�C#.���h��ϗ�� �@�����;����Bw����r�"
2016-11-10 16:38:03 SERVER -> CLIENT: M IA��w�¿�����)f�����(z!j�ܐ弅#_�kU۱Ȳ���'���Wt�G�FRX�����*��e���)@X��{�<=� #Gd��;�����dG���cM�޷V3����P��r��ѦF<�^-�DE�4H�X�Èd�8������R$�%Mx�� � ���ި�W��$��L�-��8Y1˖���%��_�me�S��^zȀ��<�2<9�j%�U��+͠ Nm����M�)-e�"���O̺S� Qt꒏7ƧP��V����s.���Z�^�KL�C#.���h��ϗ�� �@�����;����Bw����r�
2016-11-10 16:38:03 SMTP ERROR: QUIT command failed: M IA��w�¿�����)f�����(z!j�ܐ弅#_�kU۱Ȳ���'���Wt�G�FRX�����*��e���)@X��{�<=� #Gd��;�����dG���cM�޷V3����P��r��ѦF<�^-�DE�4H�X�Èd�8������R$�%Mx�� � ���ި�W��$��L�-��8Y1˖���%��_�me�S��^zȀ��<�2<9�j%�U��+͠ Nm����M�)-e�"���O̺S� Qt꒏7ƧP��V����s.���Z�^�KL�C#.���h��ϗ�� �@�����;����Bw����r�
2016-11-10 16:38:03 Connection: closed
2016-11-10 16:38:03 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting Message could not be sent.Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting


then I tried with php5 and it works

but joomla and other component regular send email.
On configuration I have SMTP security=none ( this can be a problem with chronoform ? )

Thx
GreyHead
Hi Simone,

I'm not clear what that tells me?

If you leave the ChronoForms mail settings empty then ChronoForms will use the Joomla! mailer settings and should send mail with no problem. Please drag a Debugger action into the On Submit event, then submit the form and post the debug - including the 'dummy emails' results here.

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
M
microstudiosimone
Hi Bob,
If it set the phpMailer with:
$mail->SMTPSecure = false;
$mail->SMTPAutoTLS = false;
it works also on PHP7.

It is possible set both also on Chronoforms?

Thank you
Simone
M
microstudiosimone
Here a screen shoot with ChronoForms settings empty
Attachments
Schermata 2016-11-11 alle 11.35.29.png
Schermata 2016-11-11 alle 11.35.29.png
(142.81 KiB)
483 Downloads/Views
GreyHead
Hi Simone,

I have no idea - I have rarely needed to use those settings. You can try them and see.

What settings do you have in your email action - if they are correct then ChronoForms should send using the Joomla mailer.

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
M
microstudiosimone
Hi Bob,
here the email action settings ( see attachments )

I don't know where to add SMTPSecure = false and SMTPAutoTLS = false on chronoforms
Can you tell me on which file i should add this settings?

Thx
Simone
Attachments
Schermata 2016-11-11 alle 17.32.21.png
Schermata 2016-11-11 alle 17.32.21.png
(67.51 KiB)
373 Downloads/Views
Schermata 2016-11-11 alle 17.32.35.png
Schermata 2016-11-11 alle 17.32.35.png
(58.99 KiB)
361 Downloads/Views
Schermata 2016-11-11 alle 17.32.46.png
Schermata 2016-11-11 alle 17.32.46.png
(66.25 KiB)
365 Downloads/Views
Schermata 2016-11-11 alle 17.33.01.png
Schermata 2016-11-11 alle 17.33.01.png
(45.83 KiB)
369 Downloads/Views
GreyHead
Hi Simone,

As far as I know you can't directly use those without hacking the code, There is only the single Security setting on the Settings tab.

As far as I can see CFv5 isn't installed adsusedmachinery.com so the From Email address you are using does not match the site domain.

Bob
ChronoForms technical support
If you'd like to buy me a coffee or two, thank you very much
admin
Hi,

Please try to enable and configure the SMTP under the Chronoforms "Settings" page in the admin area.

Best regards,
Max
Max
If your main question got answered then please mark the answer using the button!​
​Please let us know if you have any problems with the new forums text editor, we appreciate your feedback!