updated email template (again)
This commit is contained in:
parent
45ea1fbfa9
commit
52d238fba5
1 changed files with 12 additions and 30 deletions
|
@ -387,46 +387,28 @@ fn send_email_summary(config: &Config, body_content: Vec<String>, cliargs: &CliA
|
||||||
.body(data, ContentType::parse("text/csv").unwrap());
|
.body(data, ContentType::parse("text/csv").unwrap());
|
||||||
|
|
||||||
const HTML: &str = r#"
|
const HTML: &str = r#"
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>ChronoTrack Export</title>
|
<title>ChronoTrack Export</title>
|
||||||
<style>
|
|
||||||
#top_banner {
|
|
||||||
background-color: #33ccff;
|
|
||||||
border-radius: 40px;
|
|
||||||
height: 100px
|
|
||||||
}
|
|
||||||
#center_box {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
#image {
|
|
||||||
height:100px;
|
|
||||||
border-radius: 50%;
|
|
||||||
background-color: whitesmoke;
|
|
||||||
position: absolute;
|
|
||||||
top: 40px;
|
|
||||||
}
|
|
||||||
#the_text {
|
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
|
||||||
position: absolute;
|
|
||||||
top: 160px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="top_banner"></div>
|
<div style="background-color: #33ccff; border-radius: 40px; height: 100px;">
|
||||||
<div id="center_box">
|
<div style="display: grid; grid-template-columns: auto auto auto; margin-left: auto; margin-right: auto;width: fit-content">
|
||||||
<img src="https://cdn-icons-png.flaticon.com/512/3938/3938540.png" id="image">
|
<h1>Chrono</h1>
|
||||||
<h2 id="the_text">Prepared with care, and sent through the horrors of the interwebs, ChronoTrack presents! (see attached)</h2>
|
<img src="https://cdn-icons-png.flaticon.com/512/3938/3938540.png"
|
||||||
|
style="height:100px; border-radius: 50%; background-color: whitesmoke;">
|
||||||
|
<h1>Track!</h1>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h2>Prepared with care, and sent through the horrors of the interwebs, ChronoTrack presents! (see attached)</h2>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
"#;
|
"#;
|
||||||
|
|
||||||
let email = Message::builder()
|
let email = Message::builder()
|
||||||
.from(match cliargs.from_addr.parse() {
|
.from(match cliargs.from_addr.parse() {
|
||||||
|
|
Loading…
Reference in a new issue