Page 1 of 1

[SOLVED] Email with snapshot from camera appears empty

Posted: Monday 11 January 2016 15:00
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?

Re: Email with snapshot from camera appears empty

Posted: Monday 11 January 2016 17:13
by jvdz
Did you tick the box for "Send Camera snapshots as Attachment (Gmail)" in the Email settings page?

Jos

Re: Email with snapshot from camera appears empty

Posted: Monday 11 January 2016 19:50
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.