Found a Way to Send Emails through C++
Originally I planned on using a c++ API to send an email with an attachment of a frame from the camera to my phone when a person other than myself was detected by OpenCV during “watch hours”. It turns out libcurl had no built in support for attachments and since the focus of this project is to create a security system and not an email client, I looked for an alternative solution. Next, I found jwSMTP which has support for attachments but the authentication method is not used by gmail and thus I ruled out this library also. Lastly, I found a perl program sendEmail that works with gmail’s smtp servers and can handle attachments. It will be incorporated into the c++ program via a simple system call.