feat: improved the email
All checks were successful
On_Push / lint_fmt (push) Successful in 52s
On_Push / lint_clippy (push) Successful in 55s
On_Push / build (push) Successful in 4m5s
On_Push / deploy (push) Successful in 30s

This commit is contained in:
silver 2025-02-26 14:36:48 +00:00
parent b67894fc6e
commit 09ce45f70f
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D

View file

@ -139,7 +139,7 @@ pub mod link {
fn send_mail(config: &Config, email: &Wolves, auth: &str, user: &str) -> Result<smtp::response::Response, smtp::Error> { fn send_mail(config: &Config, email: &Wolves, auth: &str, user: &str) -> Result<smtp::response::Response, smtp::Error> {
let mail = &email.email; let mail = &email.email;
let discord = "https://discord.skynet.ie"; let discord = "https://computer.discord.skynet.ie";
let sender = format!("UL Computer Society <{}>", &config.mail_user); let sender = format!("UL Computer Society <{}>", &config.mail_user);
// Create the html we want to send. // Create the html we want to send.
@ -152,13 +152,19 @@ pub mod link {
} }
div { div {
h2 { "Hello from Skynet!" } h2 { "Hello from Skynet!" }
h3 { "Link your Account" }
// Substitute in the name of our recipient. // Substitute in the name of our recipient.
p { "Hi " (user) "," } p { "Hi " (user) "," }
p { p {
"Please use " pre { "/verify code: " (auth)} " to verify your discord account." "Please paste this line into Discord (and press enter) to verify your discord account:"
br;
pre { "/verify code: " (auth)}
} }
hr;
h3 { "Help & Support" }
p { p {
"If you have issues please refer to our Discord server:" "If you have issues please refer to our Computer Society Discord Server:"
br; br;
a href=(discord) { (discord) } a href=(discord) { (discord) }
} }
@ -172,15 +178,24 @@ pub mod link {
let body_text = format!( let body_text = format!(
r#" r#"
Hi {user} Hello from Skynet!
Link your Account
Please use "/verify code: {auth}" to verify your discord account. Hi {user},
Please paste this line into Discord (and press enter) to verify your Discord account:
/verify code: {auth}
If you have issues please refer to our Discord server: -------------------------------------------------------------------------
{discord}
Help & Support
Skynet Team
UL Computer Society If you have issues please refer to our Computer Society Discord Server:
{discord}
Skynet Team
UL Computer Society
"# "#
); );