Page to send a verification email

Created on 21 October 2023, about 1 year ago
Updated 23 October 2023, about 1 year ago

Problem/Motivation

It's useful for site-builders to have a way to send a test email from a Drupal site. This is already available in Contrib modules such as swiftmailer, Drupal Symfony Mailer. As part of 🌱 [META] Adopt the symfony mailer component Needs review we can add it to Core.

Proposed resolution

Something like this:

  • Route symfony_mailer.verify
  • Path: '/admin/config/system/mailer/verify'
  • Title: Mailer verification
  • Form: EmailVerifyForm

Notes

  1. Avoiding using the word test, because TestForm etc. gives the impression that it's test code - which it's definitely not! It's live code that needs its own test codeπŸ˜ƒ.
  2. This path allows for general mailer configuration to exist at /admin/config/system/mailer/. That would likely include the "master switch" to enable the new mail system when it exists, plus any config options it provides. We could also migrate system.site:mail to here.
  3. The form has a field to set the recipient address, which defaults to the current user's address.
  4. Submitting sends a message of type system.verify.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

✨ Feature request
Status

Postponed

Version

11.0 πŸ”₯

Component
MailΒ  β†’

Last updated 8 days ago

No maintainer
Created by

πŸ‡¬πŸ‡§United Kingdom adamps

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

Comments & Activities

  • Issue created by @adamps
  • πŸ‡¨πŸ‡­Switzerland berdir Switzerland

    The reason to be able to send a test mail in swiftmailer and similar is to test your mail configuration. Without a UI to configure that, such a test form seems to have very little use to me. If it won't work then it's not something you can fix in the UI.

  • Status changed to Closed: won't fix about 1 year ago
  • πŸ‡¬πŸ‡§United Kingdom adamps
  • Status changed to Postponed about 1 year ago
  • πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

    Do we plan to add something like mailsystem UI or similar? If so this would then be useful. Should we postpone it instead?

  • πŸ‡¨πŸ‡­Switzerland berdir Switzerland

    Postponed sounds good to me, I'm not sure if we will add a UI, but yeah, if we do then it will also be useful to be able to test the settings. Even if we just add the switch for the feature flag to use the old or new mail API then it could be useful to have it. My comment really is only about the current status quo.

  • πŸ‡¬πŸ‡§United Kingdom adamps

    Contrib has a GUI to manage transports which includes the ability to send a test message. It's currently in the Drupal Symfony Mailer project, however we plan to move it to a new module "Mailer Transport" so it can also be used by Drupal Symfony Mailer and Core. This module would in a sense become the successor to mailsystem.

Production build 0.71.5 2024