When webform is submitted programmatically it sends mail twice instead of single mail

Created on 27 July 2020, about 4 years ago
Updated 13 March 2023, over 1 year ago

Problem/Motivation

Programmatically submission of webform - sends mail twice instead of single

Steps to reproduce

1. Create webform handler where in submitForm() add some custom development and send mail through it for successfully custom development

2. Attach above handler to any webform

3. Programmaticlly submit that webform using WebformSubmissionForm::validateFormValues() and WebformSubmissionForm::submitFormValues().

: New Submission on How to programmatically create and update a submission



It sends mail first mail via successful when no error comes, and second mail via function

How to avoid sending mail twice?

🐛 Bug report
Status

Closed: cannot reproduce

Version

5.0

Component

Code

Created by

🇮🇳India pvadsul

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024