# Send email via SendGrid

{% embed include file="src/examples/other/send-mail-with-sendgrid/src/main.rs" %}

{% embed include file="src/examples/other/send-mail-with-sendgrid/Cargo.toml" %}

With a file called config.txt in the same directy that has:

```
SENDGRID_API_KEY=SG....
```


