The cformsII 10.1 plug-in is designed for PHP 5 and will not work with PHP 4.3 until it’s updated. If you’re trying to use the cformsII 10.1 plug-in with wordpress and you’re not having any luck getting it to email, then you might not have PHP 5 on your webserver. If you do have PHP 5 and you’re still not having any luck then this isn’t the place for you.
If your webserver is running PHP 4.x then the cformsII 10.1 plug-in needs to be updated to work with PHP 4. There are two files in the wp-content/plugins/cforms/phpmailer directory that you must update:
- class.phpmailer.php
- class.smtp.php
Open the files in your favorite text editor and change all of the variables from “public”/”private” to “var” and remove the access specifiers on all of the functions, including the static.
Example:
public $Priority = 3; becomes var $Priority = 3; private $smtp = NULL; becomes var $smtp = NULL;
For functions:
public function IsSMTP() becomes function IsSMTP() private static function RFCDate() becomes function RFCDate()
It’s very simple to do and it will get your cformsII mailer working with PHP 4.x.
Cheers,
Goody