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> {
|
||||
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);
|
||||
|
||||
// Create the html we want to send.
|
||||
|
@ -152,13 +152,19 @@ pub mod link {
|
|||
}
|
||||
div {
|
||||
h2 { "Hello from Skynet!" }
|
||||
|
||||
h3 { "Link your Account" }
|
||||
// Substitute in the name of our recipient.
|
||||
p { "Hi " (user) "," }
|
||||
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 {
|
||||
"If you have issues please refer to our Discord server:"
|
||||
"If you have issues please refer to our Computer Society Discord Server:"
|
||||
br;
|
||||
a href=(discord) { (discord) }
|
||||
}
|
||||
|
@ -172,11 +178,20 @@ pub mod link {
|
|||
|
||||
let body_text = format!(
|
||||
r#"
|
||||
Hi {user}
|
||||
Hello from Skynet!
|
||||
|
||||
Please use "/verify code: {auth}" to verify your discord account.
|
||||
Link your Account
|
||||
|
||||
If you have issues please refer to our Discord server:
|
||||
Hi {user},
|
||||
|
||||
Please paste this line into Discord (and press enter) to verify your Discord account:
|
||||
/verify code: {auth}
|
||||
|
||||
-------------------------------------------------------------------------
|
||||
|
||||
Help & Support
|
||||
|
||||
If you have issues please refer to our Computer Society Discord Server:
|
||||
{discord}
|
||||
|
||||
Skynet Team
|
||||
|
|
Loading…
Add table
Reference in a new issue