Error in mailer.cls.php

User 1738266 Photo


Registered User
52 posts

I have built a form and it seems to be fine until I hit the Submit button.

I want to send a simple email confirmation message using the default format. This is option 1 in Settings/Confirm Page.

The process fails with the following displayed on the page where the form is embedded:
Fatal error: Call to undefined function quoted_printable_encode() in /home/content/s/l/i/slimjim/html/2015IIBC/2015-IIBC-Reg/fbapp/php/mailer.cls.php on line 104

The form validation seems to work, so I don't think its path problems.

No email is sent either to the user email or the the notification address.

I have done a trivial form before to flush the process, so I don't think I have made any gross errors.

One other thing of interest. I am unable to test this on WAMP because of the following:
The requested URL /2015-IIBC-Reg.php was not found on this server
although it is in the same directory.
User 103173 Photo


VP of Software Development
0 posts

If I had to guess, you are running PHP 5.2.17 but PHP 5.3 is required.
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
User 1738266 Photo


Registered User
52 posts

Thanks for the quick response, Scott. That did it.

Don't you ever take a day off? I'm working on this for my wife's event, so I don't have a choice!
User 2003937 Photo


Registered User
3 posts

Hi iv same error. How do I check what version of php im using?
Thanks
User 103173 Photo


VP of Software Development
0 posts

James Moore wrote:
Hi iv same error. How do I check what version of php im using?
Thanks

Your hosting control panel should list it.
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
User 2003937 Photo


Registered User
3 posts

Thanks Its working again, though it wont send it from the address i set it too. Such as info@domain.com instead it sends it from info@www.domain.com
User 59282 Photo


Registered User
1 post

I've had a web form working perfectly on my web site for some time using a MySQL database (php 5.3) and not S Drive. It was immediately trashed as soon as I upgraded to the latest version with the error in 'mailer.cls.php' file.

I copied the single file 'mailer.cls.php' from my backup over the new one and it restored the form back to a fully working order.

This is a problem with 'quoted-printable-encode' and is described on this web page together with a suggested solution :-

http://php.net/manual/en/function.quote … encode.php



User 169738 Photo


Registered User
1 post

So I bought the new (ok its from 2015) form builder and spent hours trying to resolve a nagging problem from the previous Flash form builder I got somewhere years ago and my first attempt to submit and I get this same error.

Fatal error: Call to undefined function quoted_printable_encode() in /home1/tntrenta/public_html/TNT-Res-Form1/fbapp/php/mailer.cls.php on line 104

I looked thru the posts here and I see the suggestion of verifying the php level. I was pretty sure my hostmonster account was at php ver. 5.4? But I am not certain. Was there any other issue that could be causing this error?
User 103173 Photo


VP of Software Development
0 posts

William Green wrote:
So I bought the new (ok its from 2015) form builder and spent hours trying to resolve a nagging problem from the previous Flash form builder I got somewhere years ago and my first attempt to submit and I get this same error.

Fatal error: Call to undefined function quoted_printable_encode() in /home1/tntrenta/public_html/TNT-Res-Form1/fbapp/php/mailer.cls.php on line 104

I looked thru the posts here and I see the suggestion of verifying the php level. I was pretty sure my hostmonster account was at php ver. 5.4? But I am not certain. Was there any other issue that could be causing this error?

What is the URL to the form?
Learn the essentials with these quick tips for Responsive Site Designer, Responsive Email Designer, Foundation Framer, and the new Bootstrap Builder. You'll be making awesome, code-free responsive websites and newsletters like a boss.
User 382308 Photo


Registered User
1 post

I was also having the same problem getting the same: Fatal error: Call to undefined function quoted_printable_encode().
I had two forms on two different sites but on the same server, (BlueHost). The older one worked which was built with an older version of Coffee Cup Web Form Builder, a newer one built with the latest version of the software would not work and threw the error. By replacing the following code from the file 'mailer.cls.php' with code from the older version's file of the same name the problem was fixed.

This is from the newest version at line 104 and was causing the error:

function SetMessage ( $message ) {

$this->message = quoted_printable_encode( $message );
}

and was replaced with:

function SetMessage ( $message ) {

$this->message = wordwrap( $message, 70 );
}

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.