I have carried out further tests and I am beginning to suspect two problems.
1) getting authorisation credentials through to the camera seems limited. My cameras seems to require http:Username:
[email protected]/snapshot.jpg rather than the usual snapshot.jpg?user=Username&pswd=Password and I cannot see how to get Domoticz to accept this as it seems to build the URL rather than just use what is placed in ImageURL box. To overcome this I tried setting "Allow anonymous access" on the camera. This should allow all to work with simply ImageURL set as snapshot.jpg ... but no email arrives.
2) OK so now I have camera that should be accepting anonymous calls and all the test functions in Domoticz seems to work fine for streaming and snapshot, but no emails coming from Domoticz when associated switch is triggered.
When trying ImageURL: snapshot.jpg or snapshot.jpg?user=MyUsername&pwd=MyPassword
NO email is issued on triggering associated switch.
Try ImageURL: /snapshot.jpg ie an extra "/" in front of name, then Email is generated but attached file contains:
<html><head><title>Document Error: Page not found</title></head>
<body><h2>Access Error: Page not found</h2>
when trying to obtain <b>/snapshot.jpg</b><br><p>Cannot open URL <b>/snapshot.jpg</b></p></body></html>
Try ImageURL:
http://192.168.1.141/snapshot.jpg?user= ... MyPassword
Email is generated but attached file contains:
<html><head><title>Document Error: Unauthorized</title></head>
<body><h2>Access Error: Unauthorized</h2>
when trying to obtain <b>/http:/192.168.1.141/snapshot.jpg?user=MyUsername&pwd=MyPassword</b><br><p>Access to this document requires a User ID</p></body></html>
I note that using VNC onto the RaPi3 and using
http://192.168.1.141/snapshot.jpg or
http://192.168.1.141/snapshot.jpg?user= ... MyPassword
both work and show the correct snapshot image.
So it seems that if I put in an ImageURL that is incorrect in some way I get an email message with an attachment that contains some debug pointers but when the ImageURL is correct I get no email!
Are these bugs? Seems odd as it is obviously working for other people...