AW
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Extra email with an “if” conditionHello,
it seems that the task you indicate should be implemented as a filterwpcf7_mail_components.PS.
https://wordpress.stackexchange.com/q/367934
https://wp-plugin-api.com/hook/wpcf7_mail_components/Forum: Plugins
In reply to: [Contact Form 7] Contact form 7 not workingI didn’t notice the contents of the Content field you provided:
PHPMailer was able to connect to SMTP server but failed while trying to send an email.What is the conclusion?
- You have communication with the SMTP mail server, which means that the configuration of the Easy WP SMTP plugin is rather correct
- Unfortunately, the Debag Events functionality does not always record the reasons why emails fail – and so in this case
- The Debug Log functionality may say something more
I won’t be of much help, you’ll probably have to look for an IT specialist.
Forum: Plugins
In reply to: [Contact Form 7] Contact form 7 not workingThis line:
[0] wp_mail called at [/home/davidl23/public_html/wp-content/plugins/contact-form-7/includes/mail.php:258]indicates that the error occurs when executing the
wp_mail()function.What does the Content field contain for the same event?
Forum: Plugins
In reply to: [Contact Form 7] Contact form 7 not working@davidleisner,
don’t worry, I don’t understand many foreign languages either π.You have records in Debug Events! This bodes well.
What are these records? The most important information is in the Caller field (the window after selecting the event number in the Name column).Forum: Plugins
In reply to: [Contact Form 7] Contact form 7 not workingEasy WP SMTP on version 2.0.0 got a new look, Debug Events functionality is new, added from this version.
Previously, the dispatch process could be verified by the Debug Log functionality (deprecated, now disabled). Fortunately, it is still supported and you can force it to show and then enable it.
You can enable it with the following code (e.g. in thefunction.phpfile):add_filter( 'easy_wp_smtp_admin_pages_misc_tab_show_debug_log_settings', '__return_true', PHP_INT_MAX );After adding the above, the Enable Debug Log option should appear in the Misc tab, which you will be able to enable. This way you will get the log records of the mailings. Perhaps the old Debug Log functionality will tell you more. Debug Events and Debug Log are independent functionalities, both can run at the same time.
Forum: Plugins
In reply to: [Contact Form 7] Contact form 7 not workingHi!
Easy WP SMTP addon has event logging functionality. You check there if anything has been saved – it may be helpful in solving your problem (Tools > Debug Events).Forum: Plugins
In reply to: [Contact Form 7] Conditional field problemHi,
Wouldn’t a more appropriate approach be to define one non-mandatory email field and use a custom validator for that field (Custom validation)?
The group can be used to control the label for this field π.
Something like:[checkbox eleve use_label_element exclusive βMineur β βMajeurβ] <label>Email [group elevemajeur]*[/group] : [email email] </label>PS. I don’t know the Conditional Fields for Contact Form 7 plugin.
Forum: Plugins
In reply to: [Contact Form 7] Conditional field problemHi,
@kingsdavid you have two fields with the same name. Isn’t it so that the first one is taken for verification, which is optional in your case? You change the order of the fields and you check.Forum: Plugins
In reply to: [Contact Form 7] Get value in radio botton from url parameterForum: Plugins
In reply to: [Contact Form 7] [wpcf7_add_form_tag] function not workingSince it works again, it’s probably good news.
Check out sending emails (their content) and/or functionalities depending onpage-titleandpage-url. Thename-attrfeature for form-tags certainly affects the mail-tags. Or for something else? I don’t know.Forum: Plugins
In reply to: [Contact Form 7] [wpcf7_add_form_tag] function not workingYes, most likely the third parameter:
wpcf7_add_form_tag( 'cf7_hidden_fields', 'cf7_extra_fields_func', true );Forum: Plugins
In reply to: [Contact Form 7] Contact Form 7 Send Error But WP Mail SendsSince WP Mail SMTP has logging only in PRO, deactivate this plugin (you don’t have to uninstall it) and run Easy WP SMTP for testing. After troubleshooting, you can always go back to WP Mail SMTP – the Easy WP SMTP plugin has an option to delete its settings completely (there is almost no trace of its use π).
For me, the problem was the sender’s address, which did not match the account name on the SMTP server. In the logs I found the following entries (this is a fragment of the message from logs):
Sender is not same as SMTP authenticate usernameP.S. Interestingly, in my environment, the problem is only the sender for the first message /Mail template/. For the second message /Mail(2) template/ the sender does not have to match the username authenticating on the SMTP server – most likely it is caused by the cooperation of PHPMailer (which actually sends) with the SMTP server.
Forum: Plugins
In reply to: [Contact Form 7] Contact Form 7 Send Error But WP Mail SendsHi,
I’m using Easy WP SMTP and I had similar symptoms – the plugin’s internal test was working fine but the form submission was showing a general error.
I don’t know about the WP Mail SMTP plugin, but the one I use (Easy WP SMTP) has an option to log sending messages – it’s not perfect, but there I found records from the SMTP server and the exact causes of problems with sending messages.
Forum: Plugins
In reply to: [Contact Form 7] [wpcf7_add_form_tag] function not workingHi everyone,
that’s right, it came in version 5.7.3. You see the full explanation in this thread: Custom tag broke with new update.Forum: Plugins
In reply to: [Contact Form 7] Custom tag broke with new updateSo, you only have the values, but in your solution the name is mandatory – the last parameter in the following line of your code:
wpcf7_add_form_tag(array('qty'), 'custom_qty_form_tag_handler', true);Most likely adding a name for form-tag is enough:
https://contactform7.com/tag-syntax/#form_tagPS: the following locations for version 5.7.3
contact-form-7/includes/form-tags-manager.php:6contact-form-7/includes/form-tags-manager.php:110contact-form-7/includes/form-tags-manager.php:504