Mailgun API
Send emails through mailgun in rust
How install it
- add the dependency in the Cargo.toml file of the project:
= "0.1"
Example
async
How test it
- Create a .env file and add the next parameters:
MAILGUN_DOMAIN=[YOUR DOMAIN]
MAILGUN_SECRET=[YOUR MAILGUN API SECRET]
MAILGUN_ENDPOINT=[MAILGUN ENDPOINT] // There is two endpoint currently: api.mailgun.net and api.eu.mailgun.net
EMAIL_RECEIVER_TEST=[EMAIL RECEIVER TEST]
EMAIL_FROM=[SENDER TEST]
- Execute the test
cargo test
Warning: when you are running the tests you are sending a email to the receiver that you set
Do you like Mailgun API?
- If you like Mailgun API, help us supporting the project with Github Sponsors or with grants in Gitcoin
Roadmap
- Send email
- Retrieve Store Message
- Delete Stored Message
- Domains
- IPs
- Events
- Stats
- Tags
- Suppressions
- Routes
- Webhooks
- Mailing List
- Templates
- Email validation
- Inbox Placement
License
Mailgun API is MIT licensed