docs(all): Add instruction to launch fake smtp server (#681)

This commit is contained in:
Gaëtan Duchaussois
2021-10-11 16:41:03 +02:00
committed by GitHub
parent addf8754dd
commit c9b3fa0baa

View File

@@ -103,7 +103,8 @@ match mailer.send(&email) {
## Testing
The `lettre` tests require an open mail server listening locally on port 2525 and the `sendmail` command.
The `lettre` tests require an open mail server listening locally on port 2525 and the `sendmail` command. If you have python installed
such a server can be launched with `python -m smtpd -n -c DebuggingServer localhost:2525`
Alternatively only unit tests can be run by doing `cargo test --lib`.