async fn send_email_new_consultant(&self) {
        // Initialize the SendGrid client.
        let sendgrid = SendGrid::new_from_env();

        // Get the user's aliases if they have one.
        let aliases = self.aliases.join(", ");

        // Send the message.
        sendgrid
            .send_mail(
                format!("Your New Email Account: {}", self.email()),
                format!(
                    "Yoyoyo {},

You should have an email from Okta about setting up your account with them.
We use Okta to authenticate to a number of different apps -- including
Google Workspace. This includes email, calendar, drive, etc.

After setting up your Okta account your email account with Google will be
provisioned. You can then login to your email from: mail.corp.{}.
Details for accessing are below.

Website for Okta login: https://oxidecomputerlogin.okta.com
Website for email login: https://mail.corp.{}
Email: {}
Aliases: {}

Make sure you set up two-factor authentication for your account, or in one week
you will be locked out.

If you have any questions or your email does not work please email your
administrator, who is cc-ed on this email. Spoiler alert it's Jess...
jess@{}.

xoxo,
  The Onboarding Bot",
                    self.first_name,
                    DOMAIN,
                    DOMAIN,
                    self.email(),
                    aliases,
                    DOMAIN,
                ),
                vec![self.recovery_email.to_string()],
                vec![self.email(), format!("jess@{}", DOMAIN)],
                vec![],
                format!("admin@{}", DOMAIN),
            )
            .await;
    }
/// Send an email to the new consultant about their account.
Send an email to the new consultant about their account.
Send an email to the new consultant about their account .
async fn send_email_new_consultant(&self) {
        // Initialize the SendGrid client.
        let sendgrid = SendGrid::new_from_env();
        // Get the user's aliases if they have one.
        let aliases = self.aliases.join(", ");
        // Send the message.
        sendgrid
            .send_mail(
                format!("Your New Email Account: {}", self.email()),
                format!(
                    "Yoyoyo {},
You should have an email from Okta about setting up your account with them.
We use Okta to authenticate to a number of different apps -- including
Google Workspace. This includes email, calendar, drive, etc.
After setting up your Okta account your email account with Google will be
provisioned. You can then login to your email from: mail.corp.{}.
Details for accessing are below.
Website for Okta login: https://oxidecomputerlogin.okta.com
Website for email login: https://mail.corp.{}
Email: {}
Aliases: {}
Make sure you set up two-factor authentication for your account, or in one week
you will be locked out.
If you have any questions or your email does not work please email your
administrator, who is cc-ed on this email. Spoiler alert it's Jess...
jess@{}.
xoxo,
  The Onboarding Bot",
                    self.first_name,
                    DOMAIN,
                    DOMAIN,
                    self.email(),
                    aliases,
                    DOMAIN,
                ),
                vec![self.recovery_email.to_string()],
                vec![self.email(), format!("jess@{}", DOMAIN)],
                vec![],
                format!("admin@{}", DOMAIN),
            )
            .await;
    }
async fn send_email_new_consultant ( & self ) { // Initialize the SendGrid client. let sendgrid = SendGrid :: new_from_env ( ) ; // Get the user's aliases if they have one. let aliases = self . aliases . join ( " " ) ; // Send the message. sendgrid . send_mail ( format ! ( " " self email ( ) ) , format ! ( " " self first_name DOMAIN DOMAIN self email ( ) aliases DOMAIN ) , vec ! [ self recovery_email to_string ( ) ] , vec ! [ self email ( ) format ( " " DOMAIN ) ] , vec ! [ ] , format ! ( " " DOMAIN ) , ) . await ; }
Send an email to the new consultant about their account.
Send an email to the new consultant about their account .
&self
&self