async-email / async-smtp

Apache License 2.0
59 stars 12 forks source link

Use `connect_and_send` in examples and docs #15

Open mneumann opened 4 years ago

mneumann commented 4 years ago

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

atoav commented 4 years ago

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

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