diff --git a/Cargo.lock b/Cargo.lock index f16e043..5b6b392 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2079,7 +2079,7 @@ checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b" [[package]] name = "replit-takeout" -version = "1.4.0" +version = "1.4.1" dependencies = [ "airtable-api", "anyhow", diff --git a/Cargo.toml b/Cargo.toml index 47a20f3..7d7bc18 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "replit-takeout" -version = "1.4.0" +version = "1.4.1" edition = "2021" authors = ["Ben Dixon "] diff --git a/examples/email.rs b/examples/email.rs index 36b1fec..4d804e5 100644 --- a/examples/email.rs +++ b/examples/email.rs @@ -2,7 +2,29 @@ use replit_takeout::email; #[tokio::main] async fn main() { - email::emails::send_greet_email("test@malted.dev", "test") + email::emails::send_greet_email("test@malted.dev", "malted") + .await + .expect("an email to be sent"); + + email::emails::send_partial_success_email( + "test@malted.dev", + "malted", + 5, + &vec![String::from("foo")], + "https://google.com", + ) + .await + .expect("an email to be sent"); + + email::emails::send_success_email("test@malted.dev", "malted", 5, "https://google.com") + .await + .expect("an email to be sent"); + + email::emails::send_failed_no_repls_email("test@malted.dev", "malted") + .await + .expect("an email to be sent"); + + email::emails::send_failure_email("test@malted.dev", "malted") .await .expect("an email to be sent"); }