Skip Navigation

[Resolved] Mail not being send on specific form submition

This support ticket is created 5 years, 2 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by Nigel 5 years, 2 months ago.

Assisted by: Nigel.

Author
Posts
#1330457

Hey guys!

I am trying to:

Send a mail after a form submission. I have 2 forms that send emails and 1 is not working. I tried making another form without any style or custom configuration and also is not working for the same post type.

I also checked the error console and nothing is being showed. The only weird thing is that when i send the test message the email works, but it doesn't add the custom fields container example shortcodes. What i think about the problem:

1. It could be that the custom post type is not identifying the custom fields and not able to identify the mail to send a message (so there is no error, just a false result probably)
2. Even with the first condition in consideration, the entry message is registered correctly, so it is identifying the fields, maybe not in the right moment
3. Is contradictory that another post type has no problem and this does.

I expected to see:
The email being send.

Thank you for your help!

#1330469

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi Martín

You think the problem may be with who the email is sent to? The to address comes from an email field in the form, is that right?

A simple way to test that would be to change the to setting for the notification to send it to a specific admin user (i.e. yourself), and see if the notification then works.

Of course, it is helpful to use a plugin such as WP Mail Logging to record attempts to send outgoing mail, so that problems with mail delivery (spam folder, etc.) can be eliminated.

#1330535

HI Nigel,

I tried what you suggested and is not working. I tried:

1. Sending a copy to my email
2. Sending an email just to the main admin (myself)

Neither of those scenarios worked and workdpress didn't send an email .

The plugin you suggested "WP Mail Logging Log" just is showing the email sent with the test email, not with the form. But without any shortcode placeholder (other test emails send the placeholders)

In this case the current state of the problem is:

1. Only the post type "mensaje" is not sending email
2. Another post type is working completely fine
3. Another particular problem of this is that the test email (in the button "send test email") is being send but without the custom field placeholders (none of them).

#1330569

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

I've gone through the known issues with form notifications (there are several, but relating to notifications being sent when they shouldn't) and can't find anything related to this.

The first thing to do is rule out any conflict from 3rd party code.

Please disable all non-Toolset plugins other than the mail logger and switch theme to twentynineteen then try again. If the notification works then it should be possible to determine the source of any conflict by a process of elimination.

If that doesn't help then I would try to recreate the problem form, starting with a simplified version that works with the mensaje post type but includes minimal content, and try that to see if it will send a notification. If it does, keep adding back what's missing from the original form until you have reproduced it.

Let me know how the above goes so I can see how to proceed.

#1330591

Ok i found the problem. In the same page i have the form i have a big svg map. When i remove it sends the email. I think this element is interfering with the form submission.

#1331137

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Can I take a look at your site and see how this map is included in the form, then I can try to replicate the problem on my own site where I can try to understand why.

I will mark your next reply as private so that I can get log-in credentials from you—you may want to create a temporary admin user for me to use that you can later delete. And be sure to have a current backup of your site.

Can you point me to the correct form (with the map included).