Add autoconfigure.rs example (#787)

This commit is contained in:
Paolo Barbolini
2022-06-17 08:35:07 +02:00
committed by GitHub
parent 6fec936c0c
commit 2d21dde5a1
3 changed files with 106 additions and 0 deletions

View File

@@ -101,6 +101,14 @@ match mailer.send(&email) {
}
```
## Not sure of which connect options to use?
Clone the lettre git repository and run the following command (replacing `SMTP_HOST` with your SMTP server's hostname)
```shell
cargo run --example autoconfigure SMTP_HOST
```
## Testing
The `lettre` tests require an open mail server listening locally on port 2525 and the `sendmail` command. If you have python installed