-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathemail.html
47 lines (47 loc) · 2.66 KB
/
email.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<html>
<header>
<!-- Favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="files/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="files/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="files/favicon/favicon-16x16.png">
<meta name="theme-color" content="#ff9900">
<!-- Twitter -->
<meta name="twitter:card" content="summary"/>
<meta name="twitter:site" content="@QuackyBot"/>
<meta name="twitter:title" content="Send an Email via Quacky"/>
<meta name="twitter:description" content="Quacky is an advanced utility bot that increases automation in your server. With commands ranging from fun to moderation, it's the perfect bot for both users and admins alike."/>
<!-- Google -->
<meta name="description" content="Quacky is an advanced utility bot that increases automation in your server. With commands ranging from fun to moderation, it's the perfect bot for both users and admins alike.">
<meta name="robots" content="all">
<!-- Discord -->
<meta property="og:title" content="Send an Email via Quacky" >
<meta property="og:description" content="Quacky is an advanced utility bot that increases automation in your server. With commands ranging from fun to moderation, it's the perfect bot for both users and admins alike.">
<meta property="og:image" itemprop="image" content="https://quacky.xyz/files/avatar.webp">
<meta property="og:locale" content="en_US">
<!-- Misc extra stuff -->
<meta charset="UTF-8">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Send an Email via Quacky</title>
</header>
<body onload="email();" style="background-color: #3E5779; color: #add8e6;">
<script>
function email() {
const urlParams = new URLSearchParams(window.location.search);
const email_query = urlParams.get("email")
document.getElementById('link').href = 'mailto:' + email_query;
document.getElementById('gmail').href = 'https://mail.google.com/mail/u/0/?view=cm&fs=1&tf=1&source=mailto&to=' + email_query;
if (email_query == null || email_query == '') {
document.getElementById('message').innerHTML = 'Error: no email was provided.';
}
else {
document.location.replace("mailto:" + email_query)
}
}
</script>
<h1>One second as we redirect you...</h1>
<p id="message">If you aren't redirected <a id="link" style="color:#69F287;">click here :)</a> or <a id="gmail" style="color:#69F287;">open in a gmail tab.</a></p>
</body>
</html>