Formbuilder not sending and receiving mail Topic is solved
Formbuilder not sending and receiving mail
I'm using cms 2.2.17 and formbuilder 1.0. The more recent version of formbuilder gives a problem that will be fixed with the next version. Art the moment there is something strange. When I submit the form which formbuilder gives, I get this error-message:
#0 /var/www/vhosts/sitename.com/httpdocs/lib/phpmailer/PHPMailer.php(1656): PHPMailer\PHPMailer\PHPMailer->mailSend()
#1 /var/www/vhosts/sitename.com/httpdocs/lib/phpmailer/PHPMailer.php(1492): PHPMailer\PHPMailer\PHPMailer->postSend()
#2 /var/www/vhosts/sitename.com/httpdocs/lib/classes/class.cms_mailer.php(859): PHPMailer\PHPMailer\PHPMailer->send()
#3 /var/www/vhosts/sitename.com/httpdocs/modules/FormBuilder/classes/DispositionEmailBase.class.php(352): cms_mailer->Send()
#4 /var/www/vhosts/sitename.com/httpdocs/modules/FormBuilder/classes/DispositionEmail.class.php(115): fbDispositionEmailBase->SendForm()
#5 /var/www/vhosts/sitename.com/httpdocs/modules/FormBuilder/classes/Form.class.php(750): fbDispositionEmail->DisposeForm()
#6 /var/www/vhosts/sitename.com/httpdocs/modules/FormBuilder/action.default.php(134): fbForm->Dispose()
#7 /var/www/vhosts/sitename.com/httpdocs/lib/classes/class.CMSModule.php(1407): include('/var/www/vhosts...')
#8 /var/www/vhosts/sitename.com/httpdocs/modules/FormBuilder/FormBuilder.module.php(193): CMSModule->DoAction()
#9 /var/www/vhosts/sitename.com/httpdocs/lib/classes/class.CMSModule.php(1483): FormBuilder->DoAction()
#10 /var/www/vhosts/sitename.com/httpdocs/lib/page.functions.php(550): CMSModule->DoActionBase()
#11 /var/www/vhosts/sitename.com/httpdocs/index.php(156): preprocess_mact()
#12 {main}
When I make my own form, I don't get this message but in my mailbox I'm not receiving a mail.
What's wrong and how to fix it? Any help is welcome.
#0 /var/www/vhosts/sitename.com/httpdocs/lib/phpmailer/PHPMailer.php(1656): PHPMailer\PHPMailer\PHPMailer->mailSend()
#1 /var/www/vhosts/sitename.com/httpdocs/lib/phpmailer/PHPMailer.php(1492): PHPMailer\PHPMailer\PHPMailer->postSend()
#2 /var/www/vhosts/sitename.com/httpdocs/lib/classes/class.cms_mailer.php(859): PHPMailer\PHPMailer\PHPMailer->send()
#3 /var/www/vhosts/sitename.com/httpdocs/modules/FormBuilder/classes/DispositionEmailBase.class.php(352): cms_mailer->Send()
#4 /var/www/vhosts/sitename.com/httpdocs/modules/FormBuilder/classes/DispositionEmail.class.php(115): fbDispositionEmailBase->SendForm()
#5 /var/www/vhosts/sitename.com/httpdocs/modules/FormBuilder/classes/Form.class.php(750): fbDispositionEmail->DisposeForm()
#6 /var/www/vhosts/sitename.com/httpdocs/modules/FormBuilder/action.default.php(134): fbForm->Dispose()
#7 /var/www/vhosts/sitename.com/httpdocs/lib/classes/class.CMSModule.php(1407): include('/var/www/vhosts...')
#8 /var/www/vhosts/sitename.com/httpdocs/modules/FormBuilder/FormBuilder.module.php(193): CMSModule->DoAction()
#9 /var/www/vhosts/sitename.com/httpdocs/lib/classes/class.CMSModule.php(1483): FormBuilder->DoAction()
#10 /var/www/vhosts/sitename.com/httpdocs/lib/page.functions.php(550): CMSModule->DoActionBase()
#11 /var/www/vhosts/sitename.com/httpdocs/index.php(156): preprocess_mact()
#12 {main}
When I make my own form, I don't get this message but in my mailbox I'm not receiving a mail.
What's wrong and how to fix it? Any help is welcome.
Re: Formbuilder not sending and receiving mail
There seems to be missing a line from you error log. As is, what you posted is just the backtrace which on its own is of no use to try to help you. Look for one or more lines above the #0 one.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Re: Formbuilder not sending and receiving mail
This is the complete message that I see:
ERROR at line 1935 of file /var/www/vhosts/namewebsite.com/httpdocs/lib/phpmailer/PHPMailer.php:
ERROR MESSAGE:
Could not instantiate mail function.
TRACK TRACE:
#0 /var/www/vhosts/namewebsite.com/httpdocs/lib/phpmailer/PHPMailer.php(1656): PHPMailer\PHPMailer\PHPMailer->mailSend()
#1 /var/www/vhosts/namewebsite.com/httpdocs/lib/phpmailer/PHPMailer.php(1492): PHPMailer\PHPMailer\PHPMailer->postSend()
#2 /var/www/vhosts/namewebsite.com/httpdocs/lib/classes/class.cms_mailer.php(859): PHPMailer\PHPMailer\PHPMailer->send()
#3 /var/www/vhosts/namewebsite.com/httpdocs/modules/FormBuilder/classes/DispositionEmailBase.class.php(352): cms_mailer->Send()
#4 /var/www/vhosts/namewebsite.com/httpdocs/modules/FormBuilder/classes/DispositionEmail.class.php(115): fbDispositionEmailBase->SendForm()
#5 /var/www/vhosts/namewebsite.com/httpdocs/modules/FormBuilder/classes/Form.class.php(750): fbDispositionEmail->DisposeForm()
#6 /var/www/vhosts/namewebsite.com/httpdocs/modules/FormBuilder/action.default.php(134): fbForm->Dispose()
#7 /var/www/vhosts/namewebsite.com/httpdocs/lib/classes/class.CMSModule.php(1407): include('/var/www/vhosts...')
#8 /var/www/vhosts/namewebsite.com/httpdocs/modules/FormBuilder/FormBuilder.module.php(193): CMSModule->DoAction()
#9 /var/www/vhosts/namewebsite.com/httpdocs/lib/classes/class.CMSModule.php(1483): FormBuilder->DoAction()
#10 /var/www/vhosts/namewebsite.com/httpdocs/lib/page.functions.php(550): CMSModule->DoActionBase()
#11 /var/www/vhosts/namewebsite.com/httpdocs/index.php(156): preprocess_mact()
#12 {main}
I hope this helps to get the answer
ERROR at line 1935 of file /var/www/vhosts/namewebsite.com/httpdocs/lib/phpmailer/PHPMailer.php:
ERROR MESSAGE:
Could not instantiate mail function.
TRACK TRACE:
#0 /var/www/vhosts/namewebsite.com/httpdocs/lib/phpmailer/PHPMailer.php(1656): PHPMailer\PHPMailer\PHPMailer->mailSend()
#1 /var/www/vhosts/namewebsite.com/httpdocs/lib/phpmailer/PHPMailer.php(1492): PHPMailer\PHPMailer\PHPMailer->postSend()
#2 /var/www/vhosts/namewebsite.com/httpdocs/lib/classes/class.cms_mailer.php(859): PHPMailer\PHPMailer\PHPMailer->send()
#3 /var/www/vhosts/namewebsite.com/httpdocs/modules/FormBuilder/classes/DispositionEmailBase.class.php(352): cms_mailer->Send()
#4 /var/www/vhosts/namewebsite.com/httpdocs/modules/FormBuilder/classes/DispositionEmail.class.php(115): fbDispositionEmailBase->SendForm()
#5 /var/www/vhosts/namewebsite.com/httpdocs/modules/FormBuilder/classes/Form.class.php(750): fbDispositionEmail->DisposeForm()
#6 /var/www/vhosts/namewebsite.com/httpdocs/modules/FormBuilder/action.default.php(134): fbForm->Dispose()
#7 /var/www/vhosts/namewebsite.com/httpdocs/lib/classes/class.CMSModule.php(1407): include('/var/www/vhosts...')
#8 /var/www/vhosts/namewebsite.com/httpdocs/modules/FormBuilder/FormBuilder.module.php(193): CMSModule->DoAction()
#9 /var/www/vhosts/namewebsite.com/httpdocs/lib/classes/class.CMSModule.php(1483): FormBuilder->DoAction()
#10 /var/www/vhosts/namewebsite.com/httpdocs/lib/page.functions.php(550): CMSModule->DoActionBase()
#11 /var/www/vhosts/namewebsite.com/httpdocs/index.php(156): preprocess_mact()
#12 {main}
I hope this helps to get the answer
Re: Formbuilder not sending and receiving mail
There:
That's an issue with the email server settings. The library used (PHPMailer) is vague about the error, but that is a communication error between the software and the server. You should review the settings you have set on CMSMS regarding email server access, that's what is incorrect and preventing the emails from being sent.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Re: Formbuilder not sending and receiving mail
Thanks. I'll contact the hosting.
Re: Formbuilder not sending and receiving mail
But where do I chexk the settings on CMSMS?
Re: Formbuilder not sending and receiving mail
If I check Mail settings and send a control mail I receive that mail. So what is exactly going wrong and where can I fix it?
Re: Formbuilder not sending and receiving mail
Is this GoDaddy by any chance?
Not getting the answer you need? CMSMS support options
Re: Formbuilder not sending and receiving mail
No, it's not GoDaddy.
Re: Formbuilder not sending and receiving mail
The error is likely a security setting at the host, but as JoMorg said it would be easier to diagnose if the first line of the error message wasn't omitted. Check that your FB form "from" address is a valid address on the same domain as the server (reply-to can be different). Test on a clean form if needed, and make sure your host doesn't have anywhere that you have to explicitly allow sender addresses.
The reason I asked about GoDaddy is I had the same error message for a client there, and it was a security change they had made that required SMTPAutoTLS=false explicitly, rather than not being set. I think this was only related to sending via smtp though so may not be relevant in your case, plus it was fixed in the core for (I think) 2.2.17.
The reason I asked about GoDaddy is I had the same error message for a client there, and it was a security change they had made that required SMTPAutoTLS=false explicitly, rather than not being set. I think this was only related to sending via smtp though so may not be relevant in your case, plus it was fixed in the core for (I think) 2.2.17.
Not getting the answer you need? CMSMS support options
Re: Formbuilder not sending and receiving mail
Thanks for your advise, but no solution yet. Strange thing is that if I test the settings I receive cms testmail.
Re: Formbuilder not sending and receiving mail
If you send a test message, it will use the configured From Address configured on that page.
However, FormBuilder offers you to send emails (depends on chosen fields and their configuration) to send as if from another email address (typically the address of the visitor filling the form).
Many hosting providers either won't allow such mail to leave their (your) server, or the mail will be considered spam or not accepted at all somewhere on it's way to your mailbox.
So make sure to configure the form and its fields to send as an existing mail address of your domain. Optionally you can set an 'email address' field (from the visitor) to be used as Reply-To address.
However, FormBuilder offers you to send emails (depends on chosen fields and their configuration) to send as if from another email address (typically the address of the visitor filling the form).
Many hosting providers either won't allow such mail to leave their (your) server, or the mail will be considered spam or not accepted at all somewhere on it's way to your mailbox.
So make sure to configure the form and its fields to send as an existing mail address of your domain. Optionally you can set an 'email address' field (from the visitor) to be used as Reply-To address.
Re: Formbuilder not sending and receiving mail
Thanks Velden. I'm using the hosted mailadres. I put the question in the mailbox of the hosting. We'll see what happens.
Re: Formbuilder not sending and receiving mail
I've controled the mailadres and I wrote consequent the wrong letter. Now it's working. Thanks for all your help.