forked from microsoftgraph/python-sample-send-mail
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmailsent.html
More file actions
54 lines (54 loc) · 2.79 KB
/
Copy pathmailsent.html
File metadata and controls
54 lines (54 loc) · 2.79 KB
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
48
49
50
51
52
53
54
<!DOCTYPE html>
<!-- Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license.
See LICENSE in the source repository root for complete license information. -->
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ sample }} sample</title>
<link rel="stylesheet" type="text/css" href="/static/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="/static/css/site.css?version=1.21" />
</head>
<body>
<div class="container homepage-container">
<h1>Mail Sent</h1>
<form action="/send_mail">
<table class="mailform-table">
<tr>
<th>From:</th>
<td><input name="sender" class="form-inputs-readonly" value="{{ sender }}" readonly></td>
<td rowspan="3" width="150"><img class="profile-photo" src="data:image/png;base64,{{ photo_data }}"></td>
</tr>
<tr>
<th>Attachment:</th>
<td><input name="profile_pic" class="form-inputs-readonly" value="{{ profile_pic }}" readonly></td>
</tr>
<tr>
<th>To:</th>
<td><input name="email" class="form-inputs-readonly" value="{{ email }}" readonly></td>
</tr>
<tr>
<th>Subject:</th>
<td colspan="2"><input name="subject" class="form-inputs-readonly" value="{{ subject }}" readonly></td>
</tr>
<tr>
<th>Body:</th>
<td colspan="2"><input name="body" class="form-inputs-readonly" value="<{{ body_length }} bytes sent>" readonly></td>
</tr>
<tr>
<td></td>
<td colspan="2">
<button type="button" class="btn btn-primary btn-md" onclick="window.location.href='/mailform'">Send Another</button> <button type="button" class="btn btn-primary btn-md" onclick="window.location.href='/'">Re-Authenticate</button>
</td>
</tr>
<tr>
<td></td>
<td colspan="2">
<pre style="background-color:{% if 200 <= response_status <= 299 %}#d0ffd0{% else %}#ffd0d0{% endif %}"><Response [{{ response_status }}]></pre>{% if response_json %}<pre style="background-color:#ffd0d0">{{ response_json }}</pre>{% endif %}
</td>
</tr>
</table>
</form>
</div>
</body>
</html>