yiisoft / yiisoft/mailer

Feature Request: Intercept and save emails to files for local development

Open
#116 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue status:ready for adoption type:enhancement
Dominant language
PHP
Stars
44
Forks
13
Avg merge
54m
Merged PRs (30d)
1

Description

During local development, it is sometimes necessary to check the appearance of a sent email.

In Yii2, this was implemented as follows: the sent message was intercepted and saved in the runtime/mail directory. After that, it could be opened in a mail client like Thunderbird or another.

How can this be achieved in Yii3?

Is there a built-in mechanism similar to Yii2's file mailer? If not, I would like to request this feature. It is very useful for debugging and testing emails without actually sending them during development.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start by reviewing the Yii3 mailer send path and comparing it with the Yii2 file-mailer behavior described in the issue. Done should mean that local development can intercept messages, save them under a runtime mail directory, and avoid sending them externally.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.