add a new email template
@@ -306,6 +306,42 @@ the time and thought everyone puts into their application. We will be in touch
within the next couple weeks with more information.
Sincerely,
+ The Oxide Team",
+ self.name
+ ),
+ vec![self.email.to_string()],
+ vec![format!("careers@{}", DOMAIN)],
+ vec![],
+ format!("careers@{}", DOMAIN),
+ )
+ .await;
+ }
+
+ /// Send an email to the applicant that we love them but they are too junior.
+ pub async fn send_email_rejection_junior_but_we_love_you(&self) {
+ // Initialize the SendGrid client.
+ let sendgrid_client = SendGrid::new_from_env();
+
+ // Send the message.
+ sendgrid_client
+ .send_mail(
+ format!("Thank you for your application, {}", self.name),
+ format!(
+ "Dear {},
+
+Thank you for your application to join Oxide Computer Company. At this point
+in time, we are focusing on hiring engineers with professional experience,
+who have a track record of self-directed contributions to a team.
+
+We are grateful you took the time to apply and put so much thought into
+your candidate materials, we loved reading them. Although engineers at the
+early stages of their career are unlikely to be a fit for us right now, we
+are growing, and encourage you to consider re-applying in the future.
+
+ We would absolutely love to work with you in the future and cannot wait for
+that stage of the company!
+
+All the best,
The Oxide Team",
self.name
),
@@ -791,6 +827,11 @@ The Oxide Team",
self.send_email_rejection_did_not_provide_materials().await;
println!("[applicant] sent email to {} tell them they did not do the materials", self.email);
+ } else if self.raw_status.contains("junior") {
+ // Send the email.
+ self.send_email_rejection_junior_but_we_love_you().await;
+
+ println!("[applicant] sent email to {} tell them we can't hire them at this stage", self.email);
} else {
// Send the email.
self.send_email_rejection_timing().await;
