CrazyPixels Forum

Everything about the CrazyPixels products!
 FAQ •  Search •  Register •  Login 
It is currently Fri Sep 21, 2018 4:52 pm

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: emails - inline images and datetime
PostPosted: Tue Feb 19, 2008 3:38 pm 
Offline

Joined: Tue Feb 19, 2008 1:23 am
Posts: 11
I have CamPermanent setup to email me an image when motion is detected. The program does email me an attached image. However, even after selecting to place the image "inline" I still can't see the image. The image shows up as missing in the email body (small box with X in the middle).

I can view the attached image but I cannot view the inline image.

Also, the time of day the email was sent always reads 12:00 am therefore I can't tell when the motion was detected based on the email.

I am using Mozilla Thunderbird. There is no option to view images for these received emails so that is not the problem.
I am using CamPermanent version 2.3.01 and it is registered even though it states it is not the registered full version (I don't know why it states that).

Below is what I thought to be the pertinent source code from the email.
Code:
--#SEPERATOR1#
Content-Type: multipart/related; boundary="#SEPERATOR2#"
Content-Transfer-Encoding: quoted-printable

--#SEPERATOR2#
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Here comes a picture ...<br><img src=3D"cid:motion"><br>

--#SEPERATOR2#--

--#SEPERATOR1#
Content-Type: application/octet-stream; name=motion.jpg
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=motion.jpg
Content-ID: motion

(REMOVED BASE64 IMAGE CODE - IT WAS TESTED AND VALID)

--#SEPERATOR1#--


* sorry for the wide post. I couldn't figure out how to wrap it without breaking the working code. Admin: feel free to edit and delete the length after it's usefulness is done.


Last edited by foyleman on Tue Feb 19, 2008 3:54 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 19, 2008 3:48 pm 
Offline

Joined: Tue Feb 19, 2008 1:23 am
Posts: 11
Some more information as I am comparing source code of emails. The date provided by CamPermanent in the email is formated as:

DATE: Tuesday, February 19, 2008

All my other received emails from various locations are formated as:

Date: Wed, 13 Feb 2008 20:22:45 GMT
Date: Mon, 18 Feb 2008 17:35:23 -0500

As you can see, the timestamp is missing which is why all my emails are listed as having been received at 12:00 am


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 19, 2008 3:53 pm 
Offline

Joined: Tue Feb 19, 2008 1:23 am
Posts: 11
I ran a base64_decode() on the inline image and it is valid. An image does appear.
Based on that, I will attempt to edit my first post to reduce the length.

** However, I still need a fix to view the image inline in my email client. That doesn't work for me.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 22, 2008 2:31 pm 
Offline

Joined: Tue Feb 19, 2008 1:23 am
Posts: 11
bump


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 23, 2008 4:21 pm 
Offline

Joined: Tue Feb 19, 2008 1:23 am
Posts: 11
So, maybe these issues are being addressed in the next version of CamPermanent?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 24, 2008 5:23 pm 
Offline

Joined: Thu Aug 23, 2007 6:35 pm
Posts: 74
Just a guess but the x instead of an image could due antivirus/security settings for your email.

Are inline images normally OK? Maybe you could test it by sending an email with a inline image to yourself.

_________________
CamUniversal 3.5, Win XP Pro

4 USB Logitech webcams
QC Pro 4000 + Notebook Pro. Both on same PC and driver qc858enu.
QC Pro 5000 + Fusion. Both on same PC and driver qc1150enu.

See Homepage for QC Pro 5000 pictures.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 24, 2008 5:56 pm 
Offline
Site Admin
User avatar

Joined: Wed Aug 22, 2007 1:57 pm
Posts: 355
Location: Berlin/Germany
Hello,

thank you for your postings!

Quote:
Also, the time of day the email was sent always reads 12:00 am therefore I can't tell when the motion was detected based on the email.
I have fixed this for Thunderbird, Outlook was already ok!

Quote:
I am using CamPermanent version 2.3.01 and it is registered even though it states it is not the registered full version (I don't know why it states that).
Please go from the menu to info/register and follow the steps.
Send me the key_info file and will send you your key!

Quote:
I am using Mozilla Thunderbird. There is no option to view images for these received emails so that is not the problem.
Yes! I have tried once more to receive the emails from CamPermanent with inline images!
- in Thunderbird you see only the missing box and the images are attached.
- Outlook Express 6 works well
- Outlook 2003 works well

I don't know the difference in the email format which Thunderbird needs to display the inline images. I have searched the web but nothing special found!
I'm glad if someone have an idea! :o

_________________
Marc Schneider

CrazyPixels Software Development


Facebook https://www.facebook.com/crazypixels.software
Twitter https://twitter.com/crazypixelssoft
Google+ https://plus.google.com/+Crazypixels/posts


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 24, 2008 11:49 pm 
Offline

Joined: Tue Feb 19, 2008 1:23 am
Posts: 11
Thanks. And in return, I have the answer to why inline images don't work on Thunderbird. Two issues:

- Your Content-Type for the image must be an image content type.
Content-Type: image/jpeg; name=motion3.jpg

- Your separators are not quite correctly inserted.
--#SEPERATOR1#
describe email and boundary

--#SEPERATOR2#
insert html

--#SEPERATOR2#
define inline image

--#SEPERATOR2#-- (close separator 2)

--#SEPERATOR1#-- (close separator 1)

Your message:
Code:
This is a multi-part message.

--#SEPERATOR1#
Content-Type: multipart/related; boundary="#SEPERATOR2#"
Content-Transfer-Encoding: quoted-printable

--#SEPERATOR2#
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Here comes a picture ...<br><img src="cid:motion3"><br>

--#SEPERATOR2#--

--#SEPERATOR1#
Content-Type: application/octet-stream; name=motion3.jpg
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=motion3.jpg
Content-ID: motion3

INSERT-IMAGE-CODE-HERE

--#SEPERATOR1#--


Corrected:
Code:
This is a multi-part message.

--#SEPERATOR1#
Content-Type: multipart/related; boundary="#SEPERATOR2#"
Content-Transfer-Encoding: quoted-printable

--#SEPERATOR2#
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
Here comes a picture ...<br><img src="cid:motion3"><br>
</body>
</html>

--#SEPERATOR2#
Content-Type: image/jpeg; name=motion3.jpg
Content-Transfer-Encoding: base64
Content-ID: motion3
Content-Disposition: inline; filename=motion3.jpg

INSERT-IMAGE-CODE-HERE
--#SEPERATOR2#--

--#SEPERATOR1#--


As for the license, I must have gotten side tracked or something. I didn't realize that step 6 of the license procedure was necessary. I don't know why. lol.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 26, 2008 4:41 pm 
Offline
Site Admin
User avatar

Joined: Wed Aug 22, 2007 1:57 pm
Posts: 355
Location: Berlin/Germany
Hello,

I have tried this in Mozilla Thunderbird 1.0.6 and it doesn't work.

Please could you send me via email a *.eml file which works for you
and which I can open in Thunderbird (File/File open ...).

_________________
Marc Schneider

CrazyPixels Software Development


Facebook https://www.facebook.com/crazypixels.software
Twitter https://twitter.com/crazypixelssoft
Google+ https://plus.google.com/+Crazypixels/posts


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 26, 2008 4:52 pm 
Offline

Joined: Tue Feb 19, 2008 1:23 am
Posts: 11
I sent it to you via email. Two versions.... the original and the fixed versions.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 29, 2008 7:08 pm 
Offline
Site Admin
User avatar

Joined: Wed Aug 22, 2007 1:57 pm
Posts: 355
Location: Berlin/Germany
I haven't got this email yet.

Please could you resend it!

_________________
Marc Schneider

CrazyPixels Software Development


Facebook https://www.facebook.com/crazypixels.software
Twitter https://twitter.com/crazypixelssoft
Google+ https://plus.google.com/+Crazypixels/posts


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 29, 2008 10:10 pm 
Offline

Joined: Tue Feb 19, 2008 1:23 am
Posts: 11
Perhaps it got filtered... all that email header code could trigger a spam alert.

To avoid the lost email... you can download the two files here.

I don't mind helping since it only means a better product for me in the end.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 03, 2008 8:41 pm 
Offline
Site Admin
User avatar

Joined: Wed Aug 22, 2007 1:57 pm
Posts: 355
Location: Berlin/Germany
Thank you, I will try it in the next days!

_________________
Marc Schneider

CrazyPixels Software Development


Facebook https://www.facebook.com/crazypixels.software
Twitter https://twitter.com/crazypixelssoft
Google+ https://plus.google.com/+Crazypixels/posts


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 05, 2008 12:32 pm 
Offline
Site Admin
User avatar

Joined: Wed Aug 22, 2007 1:57 pm
Posts: 355
Location: Berlin/Germany
Now it works for the Thunderbird too!

The next update will include this improvement.

_________________
Marc Schneider

CrazyPixels Software Development


Facebook https://www.facebook.com/crazypixels.software
Twitter https://twitter.com/crazypixelssoft
Google+ https://plus.google.com/+Crazypixels/posts


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 05, 2008 3:05 pm 
Offline

Joined: Tue Feb 19, 2008 1:23 am
Posts: 11
Awesome!!!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subsilver by phpBBservice.nl