chatmail/async-smtp

Use `connect_and_send` in examples and docs

Opened this issue · 1 comments

The examples just use send, whereas at least for STARTTLS with authentification, a prior call to connect is required.

atoav commented

I agree that this should be changed in the example. I used:

// Send the email
let result = mailer.connect_and_send(email).await;