duceduc
December 16, 2023, 1:16am
1
With the recent smtp integration changes regarding inline image. Is it still possible to achieve this with my setup below? What would be the correct formatting
under img tag?? Thank you.
- service: notify.home_assistant
data_template:
title: 'Weather'
message: 'Today`s Weather'
data:
images:
- '/config/www/img/private/{{ range(1, 25) | random }}.jpg'
<img style="width: 100%; max-width: 640px;" alt="" src="cid:<correct formating>.jpg" />
Taomyn
February 2, 2024, 8:11am
2
Did you ever get an answer? Almost ever since I set up my SMTP notifier the inline images have never shown (just a broken link), yet I cannot see why. My current automation has the following code in the action:
images:
- /media/tapo_camera_3.jpg
- /media/tapo_camera_8.jpg
html: >
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Motion Detected At Home</title>
<style type="text/css">
h1,h2,h3,h4,h5,h6 {font-family:Arial,sans-serif;}
</style>
</head>
<body>
<h1>Motion detected</h1>
<img style="width: 100%; max-width: 640px;" alt="Image from 7B83" src="cid:tapo_camera_3.jpg" />
<img style="width: 100%; max-width: 640px;" alt="Image from DD98" src="cid:tapo_camera_8.jpg" />
</body>
</html>
They arrive as attachments just fine, just never appears inline:
No, I am just seeing a blown up image on pc email client. mobile email looks fine though.