WordPress 2.0.10 set up IIS6 and PHP 4.4.6 on W2K3. I originally couldn't get the CForms adminstration page up on PHP5 – so I went down to PHP4 – thats when I saw the solution in the FAQ's to change a line of code in the the cforms.php, cforms-database.php, etc. to $plugindir = "contactforms";
I didn't see any instructions to put my own sitename in the same files but it made logical since to replace 'sitename' with my http://www.mysite.com then the CForms Administration page showed up – Finally. I was extremely happy to see that come up.
I can now go to the main WP page and register and a response states that the server sent me my password in an email. However no password is received, I do a netstat -n on the server and do not even see any IP Traffic showing it tried to resolve any MX records (no traffic to its primary DNS server).
I already tried:
(~line 425, cforms.php)
$value = mb_convert_encoding(utf8_decode($params ['field_' . $i]), get_option('blog_charset'));
replaced per http://www.deliciousdays.com/cforms-forum?forum=3&topic=26&page=1 with:
$value = $params ['field_' . $i];
To get email functionality to work do I need to further edit any of the cforms *.php files??? Do I need to replace 'Server_Name" with my actual server name (or did they make this a variable to retrieve the server name off the WordPress Host automatically?) How do I get email to work?
I do see the section "Email is not being sent or WP stalls!? " under the FAQ – but there is no text associated with that topic, the next
March 6, 2005
The inital mb_convert_encoding issues and $plugindir = "contactforms"; should actually be fully resolved with v4.0, you should not have had to make any manual adjustments in those areas.
To see if you have a general email issue, first thing would be to force WP send you an email, e.g. when a new comment is made, a new subscriber registers with your blog etc. If all those WP admin emails make it, then we need to take a look at why cforms doesn't send any emails.
Can you post a URL to look at?
March 6, 2005
Oliver, thanks for your quick reply.
I am more confident with ASP./NET then with PHP however I have found a solution. I had to edit manually cforms.php where I replaced @mail( string with @wp_mail(. Now I get emails from web forms.
But another task has popped up. Specific Central European characters are not displayed correctly. I am going to research further BTW my form is at http://www-webhosting.cz/kontakt/.
March 6, 2005
Since you're blog runs on UTF-8 there shouldn't be any issues with special characters at all. I've been seeing quite a few deployments in Central and Eastern European contexts.
When (before, during or after form submission) and what characters are not being displayed correctly?
Does it make a difference, if you disable the Ajax support per form?
Admin pages work alright. With ajax enabled the characters in success/failure message were corrupted. After disabling ajax it went ok.
Now the only issue is when I get email with strange characters. Isn't it connected to using of wpPHPmailer instead of default mail function?
March 6, 2005
Do you not get the strange characters in email when using the defulat @mail command?
It really should matter whether you run @mail or @wp_mail, what does the email header say? UTF-8? Or could it be that wp_mail hard codes it to something else?
And while I'm glad the form works when Ajax is disabled, it still should work when enabled. The current error msg is:
Prosím vyplňte všechna požadovaná pole.
What did it look like with Ajax enabled?
I do not get any email when using @mail command.
Good idea to check the email header:
Content-Type: text/plain; charset="iso-8859-1"
So here we are. It could be the reason. I will take a look at the wp_mail code to find out more.
Regarding Ajax, I tried to enable it but no email has arrived however the response message like "Prosím vyplňte všechna požadovaná pole" (=fill in all the reqired fields) was ok.
Most Users Ever Online: 959
Currently Browsing this Page:
Guest Posters: 3761
Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass
Moderators: Paul (421), cnymike (8), sonika (95)
Administrators: Oliver (6400), Nicky (3)