-
Notifications
You must be signed in to change notification settings - Fork 0
/
email.html
36 lines (32 loc) · 1.52 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
<!doctype html>
<html><head>
<meta charset="utf-8">
<title>Email</title>
</head><body>
<h1>Email</h1><p>Blind carbon copy hides the original sender.
<a href="https://www.linkedin.com/pulse/make-outlook-work-like-gmail-joshua-forman">Make Outlook work like Gmail</a>
</p>
to <input type="text" id="to" placeholder="[email protected],[email protected]"><br>
cc <input type="text" id="cc" placeholder="[email protected],[email protected]"><br>
bcc <input type="text" id="bcc" placeholder="[email protected],[email protected]"><br>
<input type="text" placeholder=Subject id="s" value=""><br><textarea id="body" placeholder="email content" style="margin: 0px; width: 354px; height: 232px;"></textarea>
<br><script>
onchange = function(){
var to = document.getElementById('to').value;
var cc = document.getElementById('cc').value;
var bcc = document.getElementById('bcc').value;
var s = document.getElementById('s').value;
var body = document.getElementById('body').value ;
document.getElementById('output').href = 'mailto:'+encodeURIComponent(to)+
(cc?("?cc="+encodeURIComponent(cc)):'')+
(bcc?("?bcc="+encodeURIComponent(bcc)):'')+
(s?("?subject="+encodeURIComponent(s)):'')+
"&body="+encodeURIComponent(body);
document.getElementById('output').innerText = s;
}
</script>
<a id=output></a>
<!--a href="mailto:[email protected]?cc=cc&bcc=bcc&[email protected]&body=body">email</a-->
Display Calendar link
https://www.codeproject.com/Questions/1070347/Change-File-Name-while-downloading-ICS-file
</body>