I need to send list item attachment via email whenever someone add an item to list. I am unable to send email with attachment. using SendGrid of azure as CSOM send email utility does not support attachment.
With send grid , I am unable to provide file url as it don’t accept (http://filepath ) (It only accept local path)
Is there any way to get list item attachment and convert it into system.IO.Stream
Is there any other approach or solution for this.
Implementing with Remote Event Receiver .
OpenBinaryStream
method ofMicrosoft.SharePoint.Client.File
. It will return a stream that you should be able to use. – wjervis Jun 9 '16 at 16:16Value
property? – wjervis Jun 9 '16 at 16:25