cforms II User Forum

Registration is currently disabled.
Guest

FAQs

Login form protected by Login LockDown.


Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

    

Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
unable to configure email - tried FAQ and Forums already. Help
May 4, 2007
10:19 pm
Mark Mills
Guest

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.

***NOW***

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

 Thanks,

 webadmin@desktop-assistance.com

May 4, 2007
11:10 pm
Mark Mills
Guest

OK – now I'm thinking that email in WordPress is not set up correctly?!?

I tried to follow the instructions at http://codex.wordpress.org/Blog_by_Email but still not having any luck. Ths is all new to me so I'm guessing I'm just getting my teeth cut alittle the first time.

May 5, 2007
8:03 am
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Mark,

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.

You can also test with or w/o Ajax turned on for a given form and if you're using Firefox, take a look at the Javascript Error Console. 

Can you post a URL to look at?

May 14, 2007
7:48 pm
Honza
Guest

Hi, is there any way of using smtp mail server instead, for example Plugin: wpPHPMailer?

Thanks for help :)

May 14, 2007
9:49 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

If I'm not mistaken, wpPHPMailer replaces the wp_mail command, while being fully compliant, isn't it? Yes, there should be no reason for cforms to not work with wpPHPMailer.

May 14, 2007
11:22 pm
Honza
Guest

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 Smile BTW my form is at http://www-webhosting.cz/kontakt/.

May 14, 2007
11:31 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

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?

May 15, 2007
1:09 pm
Honza
Guest

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?

May 15, 2007
1:17 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

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? 

May 15, 2007
2:24 pm
Honza
Guest

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.

May 15, 2007
2:51 pm
Honza
Guest

OK, we're done Smile I updated PHPMailer - line 36 in class.phpmailer.php to:

    var $CharSet = "utf-8";

Now it works perfectly. Thanks!

 

May 15, 2007
3:01 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

'Glad we got it resolved and thanks for the update!

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
26 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3763

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5359

Posts: 18742

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)