feat: improved the email
This commit is contained in:
parent
b67894fc6e
commit
09ce45f70f
1 changed files with 25 additions and 10 deletions
|
@ -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
|
||||||
"#
|
"#
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue