[SOLVED] Email with snapshot from camera appears empty

Moderator: leecollings

Post Reply
mKotek
Posts: 68
Joined: Wednesday 30 December 2015 23:54
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Poland
Contact:

[SOLVED] Email with snapshot from camera appears empty

Post by mKotek »

I have setup my AOTE camera, so that an email is being sent when a specific switch is changing it's state.
I am getting an email into GMail, but it appears empty. Only when I select Show original to see the full content of an email, I can see the email contains a multipart message:

Code: Select all

Return-Path: <[email protected]>
Received: from domoticz (xxxxxx. [xxxx])
        by smtp.gmail.com with ESMTPSA id kb5sm119091311xxx.20.2016.01.11.04.30.06
        for <xxx>
        (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
        Mon, 11 Jan 2016 04:30:07 -0800 (PST)
Message-ID: <[email protected]>
Date: Mon, 11 Jan 2016 04:30:07 -0800 (PST)
X-Google-Original-Date: Mon, 11 Jan 2016 13:30:05 CET
Sender: xxx <xxx>
From: [email protected]
X-Google-Original-From: <xxx@xxx>
To: <xxx@xxx>
MIME-Version: 1.0
Content-Type: multipart/mixed;
	boundary="bounds=_NextP_0056wi_0_8_ty789432_tp"
Subject: Choinka Status: Off

This is a MIME encapsulated message

--bounds=_NextP_0056wi_0_8_ty789432_tp
Content-Type: multipart/alternative;
	boundary="inner_jfd_0078hj_0_8_part_tp"

--inner_jfd_0078hj_0_8_part_tp
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7BIT

--inner_jfd_0078hj_0_8_part_tp
Content-type: text/html; charset=UTF-8
Content-Transfer-Encoding: base64

PGh0bWw+ [truncated] +DQo8L2JvZHk+DQo8L2h0bWw+DQo=

--inner_jfd_0078hj_0_8_part_tp--

--bounds=_NextP_0056wi_0_8_ty789432_tp--

.
[truncated] is part of the message I have cut out in this post for readability.

I have copied the whole base/64 part and decoded it and I was able to see the picture from the camera, but only using external tools.
For some reason, Domoticz is not sending the message the way, GMail would identify the attachment and show it correctly. Is it a bug?
Last edited by mKotek on Monday 11 January 2016 19:51, edited 1 time in total.
Michal 'Kotek', greetings from Poland. Zapraszam na mój blog o automatyce domowej po polsku: http://www.ukotka.com.
User avatar
jvdz
Posts: 2328
Joined: Tuesday 30 December 2014 19:25
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.107
Location: Netherlands
Contact:

Re: Email with snapshot from camera appears empty

Post by jvdz »

Did you tick the box for "Send Camera snapshots as Attachment (Gmail)" in the Email settings page?

Jos
New Garbage collection scripts: https://github.com/jvanderzande/GarbageCalendar
mKotek
Posts: 68
Joined: Wednesday 30 December 2015 23:54
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Poland
Contact:

Re: Email with snapshot from camera appears empty

Post by mKotek »

jvdz wrote:Did you tick the box for "Send Camera snapshots as Attachment (Gmail)" in the Email settings page?

Jos
My bad, thank you very much. It works as expected now.
Michal 'Kotek', greetings from Poland. Zapraszam na mój blog o automatyce domowej po polsku: http://www.ukotka.com.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest