# Send a basic email ```rust use mailjet_api_wrapper::{ data::{EmailAddress, Message}, requests::SendRequest, Mailjet, }; // Create mailjet client let mailjet = Mailjet::from_api_keys("your_key", "your_secret"); // Create recipients let to = EmailAddress::from_email("passenger1@mailjet.com"); let from = EmailAddress::from_email_and_name("pilot@mailjet.com", "Mailjet Pilot"); // Create message let mut message = Message::default(); message.to.push(to); message.from = from; message.html_part = "

Dear passenger 1, welcome to Mailjet!


May the delivery force be with you!".to_string(); message.text_part = "Dear passenger 1, welcome to Mailjet! May the delivery force be with you!".to_string(); message.subject = "Your email flight plan!".to_string(); // Create send request let mut send_request = SendRequest::default(); send_request.sandbox_mode = Some(true); // You can remove this when sending for real send_request.messages.push(message); // Send emails let response = mailjet.send(&send_request).unwrap(); ```