toml
ohmysmtp = "0.1.1"
```rust use ohmysmtp::{Email, File, FileType, OhMySmtp};
let emailservice = OhMySmtp::new("APIKEY");
let result = email_service.send(&Email::new( "from@email.address", "to@email.address", "Body text", ));
let email_advanced_example =
Email::new("from@email.address", "to@email.address", "Body text") .withsubject("Subject line") .withattachment(File::new(b"File!", "file-name.txt", & FileType::Txt));
match emailservice.send( & emailadvanced_example) { Ok(()) => println ! ("Success!"), Err(e) => println ! ("Error :(") } ```
email-address-parser
check-if-email-exists
email-validation
feature)Want to say thanks for this library? Just click the button below and leave a brief note. It would make my day :)