Receive And Send Attachment As Email Within Microsoft Bot Framework
I am currently building a chatbot that is able to receive attachments and save them to a local directory. I want to find out how to use that same attachment and send it via email.
Solution 1:
Look over the 24.bot-authentication-msgraph sample in the BotBuilder-Samples repo. This sample demonstrates how a bot can be setup to send an email on the user's behalf.
Using that sample as a reference/template, you can infer how this process could work for you (in case you are not using MS Graph). The docs here explain how a file can be included as an attachment in an email.
If you preserve the location of the saved file, you should be able to read the file from the local directory and, using the method referenced above, attach the file before sending.
Hope of help.
Post a Comment for "Receive And Send Attachment As Email Within Microsoft Bot Framework"