I have added an email notification in my form to send an email notification after submitting the post . when I send a test email from the toolset post form, I received it. but when submit a new form I did not receive the notification. Please Help.
Hello, can you take some screenshots of the Form Editor page in wp-admin and share those in your next reply? I would like to see the following panels:
1. Settings Panel - please take a screenshot of the open panel so I can see the settings.
2. Email Notifications - Please open each notification and take a screenshot or a series of multiple screenshots if the content extends vertically beyond the bottom of the screen.
3. Toolset Forms Commerce - If your site uses the Toolset Forms Commerce plugin and this Form is configured for Forms Commerce, please open this panel and take a screenshot of the contents. If the panel extends vertically beyond the bottom of the screen, scroll down and take multiple screenshots so I can see everything.
Next, check your spam folder to be sure the emails are not blocked for some reason.
Finally, please tell me more about what happens when you submit the new post Form. You mentioned that the email was not sent. What about the new post, was it created as expected? Was the post status set correctly? Were any errors shown on the screen? Did the page redirect, display a message as expected, or based on your settings for "After visitors submit this form:" in the Settings panel?
Hi
Please check the attached screenshots,
when I submit a new post form everything is fine. the post is created and stored successfully as expected and the page refreshed and a message "Post Saved" shown. Except for the notification, I did not receive the email.
Okay thank you for the screenshots and additional information. I don't see anything obviously wrong here. The only thing that looks unusual to me is the recipient email address. Is the admin@***.o email address shown in the emailNotification1.jpg image complete? If it is complete, the TLD .o is unusual to me. The TLD, or "top level domain", is the string of characters after the (.) dot character. I do not think I have ever seen another one-character TLD. It may be perfectly fine, I'm just not sure and need to do some additional research.
If the email adress shown in the screenshot is not complete, please use the private reply fields here to share the email addresses you have been testing in the email recipient field AND in the "send a test email" feature. You can add dummy information in any of the irrelevant private reply fields if necessary to submit your private reply. After I know the exact recipient email addresses you have used, I will set up a Form on my local test site and see if I can trigger an email notification successfully using the same email addresses.
Have you tested with different notification recipient email addresses? I would like to be sure there is not an email address validation issue here. If you have not already done so, please try another recipient email address. Use a known, working address from a gmail account or other domain that does not use a .o TLD.
Do you have an SMTP mail plugin active? If so, which plugin? Which SMTP service provider are you using (Gmail, SendGrid, SMTP, Amazon SES, other)? If you deactivate the SMTP plugin, are email notifications sent as expected? Does the "Send a test email" feature work as expected?
I was using Mail SMTP plugin but I deactivate it because when activated, I didn't receive even a test email notification.
Okay this is the second ticket I have had recently related to the WP Mail SMTP plugin. You can review the details of the other ticket here: https://toolset.com/forums/topic/testing-email-from-post-form-2/
In that ticket, the client saw a Fatal Error logged when using the "Send test email" feature in Toolset Forms, and the test email was never received. This sounds like what you are experiencing, related to the same SMTP plugin. The fatal error he received is identical to another error mentioned in a ticket I found related to the WP Mail SMTP plugin, and was experienced without Toolset active: https://wordpress.org/support/topic/php-fatal-error-cannot-declare-class-phpmailerphpmailersmtp/
Since the same error can be produced by this plugin without Toolset active, I suspect this is an issue in the SMTP plugin itself and the best solution is to use another SMTP plugin instead of WP Mail SMTP from .
Do you have access to server logs? If so, we can check to see if a similarv PHP error is logged. If you do not have access or are unfamiliar with server logs, I can show you how to activate them temporarily and we can run some tests to see if any PHP errors are produced. However, I suspect this is the same issue noticed in other tickets, and the fastest solution here is to choose a different SMTP plugin that does not produce errors during test email submissions.
I have tried to use another plugin which is easy SMTP, but still, I did not receive any notification.
yes, I have access to the server log, please check (this when I activate the easy SMTP plugin and deactivate Mail SMTP and when I deactivate easy SMTP and activate Mail SMTP)
[22-Sep-2020 05:44:39 UTC] PHP Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /home/..../public_html/wp-includes/functions.php on line 4773
[22-Sep-2020 05:44:39 UTC] PHP Deprecated: class-phpmailer.php is deprecated since version 5.5.0! Use wp-includes/PHPMailer/PHPMailer.php instead. The PHPMailer class has been moved to wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace. in /home/..../public_html/wp-includes/functions.php on line 4963
[22-Sep-2020 05:44:39 UTC] PHP Deprecated: class-smtp.php is deprecated since version 5.5.0! Use wp-includes/PHPMailer/SMTP.php instead. The SMTP class has been moved to the wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace. in /home/..../public_html/wp-includes/functions.php on line 4963
[22-Sep-2020 05:45:57 UTC] PHP Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /home/.../public_html/wp-includes/functions.php on line 4773
[22-Sep-2020 06:41:50 UTC] PHP Deprecated: wp_make_content_images_responsive is deprecated since version 5.5.0! Use wp_filter_content_tags() instead. in /home/.../public_html/wp-includes/functions.php on line 4773
[22-Sep-2020 06:41:50 UTC] PHP Deprecated: class-phpmailer.php is deprecated since version 5.5.0! Use wp-includes/PHPMailer/PHPMailer.php instead. The PHPMailer class has been moved to wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace. in /home/.../public_html/wp-includes/functions.php on line 4963
[22-Sep-2020 06:41:50 UTC] PHP Deprecated: class-smtp.php is deprecated since version 5.5.0! Use wp-includes/PHPMailer/SMTP.php instead. The SMTP class has been moved to the wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace. in /home/.../public_html/wp-includes/functions.php on line 4963
[22-Sep-2020 06:41:50 UTC] PHP Fatal error: Cannot declare class PHPMailer\PHPMailer\SMTP, because the name is already in use in /home/..../public_html/wp-includes/PHPMailer/SMTP.php on line 30
Okay thank you, and without any SMTP plugins active do you receive notifications? Did you try the plugin suggested by the other user, https://wordpress.org/plugins/easy-wp-smtp/, or a different plugin with a similar name? I wasn't clear from the information you provided.
Okay if you'd like to share login credentials here I can take a look in wp-admin and check for any obvious issues. Is it okay for me to make a clone of your site using the Duplicator plugin? I will be able to run some tests locally to see if this is a repeatable problem.
The topic ‘[Closed] Email Notification not received’ is closed to new replies.