updates to the ui and email system
This commit is contained in:
parent
80c8a3e8a8
commit
612451cfc9
3 changed files with 12 additions and 9 deletions
|
@ -218,7 +218,7 @@ impl MtForm {
|
|||
}
|
||||
}
|
||||
|
||||
#[post("/mt-form")]
|
||||
#[post("/api/mt-form")]
|
||||
pub async fn mt_form(MultipartForm(form): MultipartForm<MtForm>) -> HttpResponse {
|
||||
let first = form.first_name.clone();
|
||||
let last = form.last_name.clone();
|
||||
|
@ -269,11 +269,11 @@ pub async fn mt_form(MultipartForm(form): MultipartForm<MtForm>) -> HttpResponse
|
|||
.unwrap(),
|
||||
)
|
||||
.to("Chris Cochrun <chris@tfcconnection.org>".parse().unwrap())
|
||||
.to("Ethan Rose <ethan@tfcconnection.org>".parse().unwrap())
|
||||
.subject(email_subject)
|
||||
.multipart(multi)
|
||||
{
|
||||
let _ = crate::email::send_email(m).await;
|
||||
let future = crate::email::send_email(m);
|
||||
actix_rt::spawn(future);
|
||||
} else {
|
||||
error!("Email incorrect");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue