pub async fn send_email_to_recipient(&self) {
        // Initialize the SendGrid client.
        let sendgrid_client = SendGrid::new_from_env();
        // Send the message.
        sendgrid_client
            .send_mail(
                format!("{}, your package from the Oxide Computer Company is on the way!", self.name),
                format!(
                    "Below is the information for your package:

**Contents:**
{}

**Address to:**
{}
{}

**Tracking link:**
{}

If you have any questions or concerns, please respond to this email!
Have a splendid day!

xoxo,
  The Oxide Shipping Bot",
                    self.contents,
                    self.name,
                    self.format_address(),
                    self.oxide_tracking_link
                ),
                vec![self.email.to_string()],
                vec![format!("packages@{}", DOMAIN)],
                vec![],
                format!("packages@{}", DOMAIN),
            )
            .await;
    }
/// Send an email to the recipient with their tracking code and information.
Send an email to the recipient with their tracking code and information.
Send an email to the recipient with their tracking code and information .
pub async fn send_email_to_recipient(&self) {
        // Initialize the SendGrid client.
        let sendgrid_client = SendGrid::new_from_env();
        // Send the message.
        sendgrid_client
            .send_mail(
                format!("{}, your package from the Oxide Computer Company is on the way!", self.name),
                format!(
                    "Below is the information for your package:
**Contents:**
{}
**Address to:**
{}
{}
**Tracking link:**
{}
If you have any questions or concerns, please respond to this email!
Have a splendid day!
xoxo,
  The Oxide Shipping Bot",
                    self.contents,
                    self.name,
                    self.format_address(),
                    self.oxide_tracking_link
                ),
                vec![self.email.to_string()],
                vec![format!("packages@{}", DOMAIN)],
                vec![],
                format!("packages@{}", DOMAIN),
            )
            .await;
    }
pub async fn send_email_to_recipient ( & self ) { // Initialize the SendGrid client. let sendgrid_client = SendGrid :: new_from_env ( ) ; // Send the message. sendgrid_client . send_mail ( format ! ( " " self name ) , format ! ( " " self contents self name self format_address ( ) self oxide_tracking_link ) , vec ! [ self email to_string ( ) ] , vec ! [ format ( " " DOMAIN ) ] , vec ! [ ] , format ! ( " " DOMAIN ) , ) . await ; }
Send an email to the recipient with their tracking code and information.
Send an email to the recipient with their tracking code and information .
&self
&self