2023-08-27 21:30:19 +02:00
|
|
|
package email
|
|
|
|
|
|
|
|
const htmlTemplate = `<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>Report</title>
|
|
|
|
</head>
|
|
|
|
<body style="font-family: Arial, sans-serif; margin: 0; padding: 0;">
|
|
|
|
<div style="background-color: #f4f4f4; padding: 20px;">
|
|
|
|
<div style="max-width: 600px; background-color: #ffffff; margin: 0 auto; padding: 20px; border-radius: 4px; box-shadow: 0 0 10px rgba(0,0,0,0.1);">
|
|
|
|
<h2 style="color: #333333; margin-top: 0;">Bucket Report</h2>
|
|
|
|
<hr style="border: none; border-bottom: 1px solid #ddd;">
|
|
|
|
<p><strong>Local Backup Path:</strong> {{local_backup_path}}</p>
|
2023-08-28 11:01:57 +02:00
|
|
|
<p><strong>Local files:</strong> {{count_local}}</p>
|
2023-08-27 21:30:19 +02:00
|
|
|
<p><strong>Bucket Name:</strong> {{bucket}}</p>
|
2023-08-28 11:01:57 +02:00
|
|
|
<p><strong>OK local in B2:</strong> {{count_ok}}</p>
|
|
|
|
<p><strong>B2 files not in local:</strong> {{count_ErrCloudNotInLocal}}</p>
|
|
|
|
<p><strong>Local files not in B2:</strong> {{count_ErrLocalNotInCloud}}</p>
|
2023-08-27 21:30:19 +02:00
|
|
|
<hr style="border: none; border-bottom: 1px solid #ddd;">
|
|
|
|
<p style="text-align: center; color: #666666;">This is an automated report, please do not reply to this email.</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|
|
|
|
`
|