more G-Labs products

Author Topic: Attached File on Notification  (Read 558 times)

March 22, 2016, 12:15:56 PM
Read 558 times

[email protected]

  • *
  • Information
  • Newbie
  • Posts: 2
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

March 22, 2016, 12:34:53 PM
Reply #1

kevin1

  • *****
  • Information
  • Hero Member
  • Posts: 330
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

March 22, 2016, 12:53:05 PM
Reply #2

[email protected]

  • *
  • Information
  • Newbie
  • Posts: 2
Thanks Kevin,

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