I have a sample script and the output showing that the API doesn't work even though it has reported that it was a successful 200 response code. I've tried a bunch of different ways of setting the value like 1 vs 0 or true vs false and others but nothing seemed to work. I don't want to disable the motion detection or the cameras ability to send emails globally, I only want to disable the use SMTP(email) alerts for motion alerts
192.168.0.11 is Getting Email value
<Response [200]>
table.MotionDetect[0].EventHandler.MailEnable=true
192.168.0.11 is Setting Email to false
<Response [200]>
OK
192.168.0.11 is Getting Email value
<Response [200]>
table.MotionDetect[0].EventHandler.MailEnable=true
192.168.0.12 is Getting Email value
<Response [200]>
table.MotionDetect[0].EventHandler.MailEnable=true
192.168.0.12 is Setting Email to false
<Response [200]>
OK
192.168.0.12 is Getting Email value
<Response [200]>
table.MotionDetect[0].EventHandler.MailEnable=true
192.168.0.13 is Getting Email value
<Response [200]>
table.MotionDetect[0].EventHandler.MailEnable=true
192.168.0.13 is Setting Email to false
<Response [200]>
OK
192.168.0.13 is Getting Email value
<Response [200]>
table.MotionDetect[0].EventHandler.MailEnable=true
192.168.0.14 is Getting Email value
<Response [200]>
table.MotionDetect[0].EventHandler.MailEnable=false
192.168.0.14 is Setting Email to false
<Response [200]>
OK
192.168.0.14 is Getting Email value
<Response [200]>
table.MotionDetect[0].EventHandler.MailEnable=false
192.168.0.15 is Getting Email value
<Response [200]>
table.MotionDetect[0].EventHandler.MailEnable=false
192.168.0.15 is Setting Email to false
<Response [200]>
OK
192.168.0.15 is Getting Email value
<Response [200]>
table.MotionDetect[0].EventHandler.MailEnable=false
So I did just run this command to one of my Recorders and I then ran the check and said it was enabled so I ran the first command again this time with false and ran the check command again and now says disabled so here is what I ran maybe it will work for you. I did run on my NVR so might be different on a camera. I will make some changes to my set up as most of my Cameras are not behind a POE nvr today.. Once I get one and setup email again on it I will try and see if it works on any of my cameras as well..
need the http and other before it however this is what I ran and it does enable with false in the place of true it turns it off... Change the IP address to your range and try that see if it works for you
Also thought I should mention that running these commands out side of your own network or if there is any things listening to your network the data that is returned when you do a Get will be in plain text and does provide your email and password to the email server... Just in case your on a Remote connection
Ok so I do have a 841V3 that isn't connected to a NVR and it was setup for Email. I found that the command for checking the Email info works good news is for that camera anyway it returns **** for password unlike my NVR's
Also the command to enable and disable works as well and was able to turn it off with command as stated above..
Again Sorry you having some issues. I can tell you that as I did in my last message that the CGI commands that I provided in this thread work on my 841V3 and I just moved my 8mp v2 camera from one of my NVRs to my Local Network same way I accessed my 841v3 and I can turn on and off my Email with that command on that camera as well. It is a Amcrest IP8M2496EW-V2 with 2021 FW installed..
VIew the Email Info as stated above post with make sure to use your cameras IP and not mine..
Sorry your right it isn't working for the Command to a 2021 FW camera. It does however work for a 2018 FW camera.. I will look at some other CGI versions to find the one that is needed for the new FW camera if there are any.. As times go by things change a little and make it harder to send commands to new FW cameras..