I'm currently working with the MailBeforeValidateEvent in Shopware and I'd like to know if this event is triggered before emails are sent to the queue. I couldn't find detailed information in the documentation, and I'm hoping someone with experience in this area could clarify.
MailBeforeValidateEvent in Shopware6
54 Views Asked by Moss At
1
There are 1 best solutions below
Related Questions in EVENTS
- Stop propagation of javasript/leaflet click event that starts in one element and ends in another
- Detecting click inside and outside of the listening component in Angular
- How to use mocha unit test chokidar watch events
- writing event_management in unity
- Where to put event handler method of an inherited class in C++ Builder?
- Event_date reference in CTE
- WinForms, event unable to subscribe from a custom class
- How to intercept a request made by a form submit in JavaScript?
- Communicating from Parent to Child in Blazor
- How to Customize Sitecore Copy operation
- grand parent is handling custom event emitted instead of parent in Angular 17
- jquery not capturing all input value changes
- Is there a way to force the focus on a determined window tab?
- How to watch user browsing activity from a background service?
- Trigger Once in React native
Related Questions in SHOPWARE6
- Creating a modal window in product edit page in Shopware6 and saving data to custom table(repository) from a form within the modal window
- How to redirect all shopware logs (monolog) including plugins (bundles) to single target like a file or stderr
- Is it allowed to add snippet with custom key for tranlsation in theme?
- Add existing product to order with shopware 6 api
- How do I execute a custom flow trigger from a plugin in Shopware >=6.5?
- Shopware 6 mixed content error when using reverse proxy
- Unable to Use RequestStacks for Adding Content to Line-Item Payload after Shopware 6.5.4.0
- Updating the Home category content is not displayed
- How Does Shopware 6 Import/Export Module Work
- Shopware 6 custom stock handling
- Add data to order overview table
- Limit association query via Shopware 6 Admin API
- Usage Error during installation of Shopware 6
- How to use the comments icon for shopware 6
- How to customize invoice document using custom field
Related Questions in EMAIL-TEMPLATES
- Can we achieve z-index like functionality without using z-index for html email template?
- How can I automatically apply dark and light themes using the Lightning Email Template Builder in Salesforce based on the user's system preferences?
- Collibra workflow sending mails scripts
- Retrieve Sendgrid Email templates to Salesforce code via API
- HTML email template outlook rendering issue
- Fix HTML email template in yandex mail
- E-mail newsletter template, CSS doesn't seem to be working
- Conditional text in woocommerce email-footer template based on product categories that were purchased in order
- Thymeleaf template is unable to processed and throwing NoSuchMethodError
- Dunning email sending queue gives the error - DUNNING_STATEMENT_PRINT_ERROR when trying to send the letter
- Klaviyo custom template how to add css to only one part
- Woocommerce Order received E-mail
- HTML Email template dark mode background issue on iPhone 11, 12 Mini version only, under editable text
- How we can scroll down in email after click on a button
- Base64 image shows in outlook email body but in Gmail it does not show the image, Gmail is not recognising the base64 string
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Assuming you are using the newest Shopware 6 version (currently:
v6.5.6.1) in a default configuration:The
MailBeforeValidateEventis dispatched at the start ofShopware\Core\Content\Mail\Service\MailService::send():Then — towards the end of the same function — the mail is sent:
Which leads to
Shopware\Core\Content\Mail\Service\MailSender::send()which callsSymfony\Component\Mailer\Mailer::send(), inside theSymfony\Component\Mailer\Messenger\SendEmailMessageis dispatched:It gets handled by the
Symfony\Component\Mailer\Messenger\MessageHandler, which calls the configured mail transport (sendmail, etc.).So
MailBeforeValidateEventis triggered before the email is sent to the queue.