HomeGenie Forum

General Category => Troubleshooting and Support => Topic started by: [email protected] on March 22, 2016, 12:15:56 PM

Title: Attached File on Notification
Post by: [email protected] on March 22, 2016, 12:15:56 PM
Hi I tried to configured the Attached file for the email notification and does not work.

I enable Still Images but no files are attached.

Any ideas ?

Thanks nice soft by the way
Title: Re: Attached File on Notification
Post by: kevin1 on March 22, 2016, 12:34:53 PM
This works for me:

Code: [Select]
byte[] img = Net.WebService("http://IP/snapshot.jpg").GetBytes();
Net.AddAttachment( "", img )
     .SendMessage( "[email protected]", "", "image from camera" );

Test and make sure image URL displays image in browser: http://IP/snapshot.jpg (http://IP/snapshot.jpg)
Title: Re: Attached File on Notification
Post by: [email protected] on March 22, 2016, 12:53:05 PM
Thanks Kevin,

Need to modify/add this config in the config file ?