updated email template

This commit is contained in:
Nickiel12 2023-09-11 18:35:50 -07:00
parent 913e030e4f
commit 45ea1fbfa9

View file

@ -393,16 +393,40 @@ fn send_email_summary(config: &Config, body_content: Vec<String>, cliargs: &CliA
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<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>
<body>
<div style="background-color: #33ccff; border-radius: 40px; height: 100px"></div>
<div style="display: flex; flex-direction: column; align-items: center; ">
<img src="https://cdn-icons-png.flaticon.com/512/3938/3938540.png"
style="height:100px; border-radius: 50%; background-color: whitesmoke; position: absolute; top: 40px;">
<h2 style="font-family: Arial, Helvetica, sans-serif; position: absolute; top: 160px;">Prepared with care, and sent through the horrors of the interwebs, ChronoTrack presents! (see attached)
<div id="top_banner"></div>
<div id="center_box">
<img src="https://cdn-icons-png.flaticon.com/512/3938/3938540.png" id="image">
<h2 id="the_text">Prepared with care, and sent through the horrors of the interwebs, ChronoTrack presents! (see attached)</h2>
</div>
</body>
</html>"#;
</html>
"#;
let email = Message::builder()
.from(match cliargs.from_addr.parse() {