Formbuilder not sending and receiving mail Topic is solved

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
babel
Forum Members
Forum Members
Posts: 149
Joined: Fri Oct 19, 2012 8:58 pm

Formbuilder not sending and receiving mail

Post by babel »

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.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1932
Joined: Mon Jan 29, 2007 4:47 pm

Re: Formbuilder not sending and receiving mail

Post by Jo Morg »

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!
babel
Forum Members
Forum Members
Posts: 149
Joined: Fri Oct 19, 2012 8:58 pm

Re: Formbuilder not sending and receiving mail

Post by babel »

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
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1932
Joined: Mon Jan 29, 2007 4:47 pm

Re: Formbuilder not sending and receiving mail

Post by Jo Morg »

There:
babel wrote: Wed Sep 13, 2023 6:38 pm Could not instantiate mail function.
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!
babel
Forum Members
Forum Members
Posts: 149
Joined: Fri Oct 19, 2012 8:58 pm

Re: Formbuilder not sending and receiving mail

Post by babel »

Thanks. I'll contact the hosting.
babel
Forum Members
Forum Members
Posts: 149
Joined: Fri Oct 19, 2012 8:58 pm

Re: Formbuilder not sending and receiving mail

Post by babel »

But where do I chexk the settings on CMSMS?
babel
Forum Members
Forum Members
Posts: 149
Joined: Fri Oct 19, 2012 8:58 pm

Re: Formbuilder not sending and receiving mail

Post by babel »

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?
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1644
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Formbuilder not sending and receiving mail

Post by DIGI3 »

Is this GoDaddy by any chance?
Not getting the answer you need? CMSMS support options
babel
Forum Members
Forum Members
Posts: 149
Joined: Fri Oct 19, 2012 8:58 pm

Re: Formbuilder not sending and receiving mail

Post by babel »

No, it's not GoDaddy.
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1644
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Formbuilder not sending and receiving mail

Post by DIGI3 »

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.
Not getting the answer you need? CMSMS support options
babel
Forum Members
Forum Members
Posts: 149
Joined: Fri Oct 19, 2012 8:58 pm

Re: Formbuilder not sending and receiving mail

Post by babel »

Thanks for your advise, but no solution yet. Strange thing is that if I test the settings I receive cms testmail.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3487
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: Formbuilder not sending and receiving mail

Post by velden »

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.
babel
Forum Members
Forum Members
Posts: 149
Joined: Fri Oct 19, 2012 8:58 pm

Re: Formbuilder not sending and receiving mail

Post by babel »

Thanks Velden. I'm using the hosted mailadres. I put the question in the mailbox of the hosting. We'll see what happens.
babel
Forum Members
Forum Members
Posts: 149
Joined: Fri Oct 19, 2012 8:58 pm

Re: Formbuilder not sending and receiving mail

Post by babel »

I've controled the mailadres and I wrote consequent the wrong letter. Now it's working. Thanks for all your help.
Post Reply

Return to “Modules/Add-Ons”