BotBuilder-Samples icon indicating copy to clipboard operation
BotBuilder-Samples copied to clipboard

[Question] How to send conversation data from bot to an email address

Open stelazh opened this issue 9 years ago • 2 comments

** if (message.Text.Equals("current city", StringComparison.InvariantCultureIgnoreCase)) { string userCity;

            var city = context.ConversationData.Get<string>(ContextConstants.CityKey);

            if (context.PrivateConversationData.TryGetValue(ContextConstants.CityKey, out userCity))
            {
                await context.PostAsync($"{userName}, you have overridden the city. Your searches are for things in  {userCity}. The default conversation city is {city}.");
            }
            else
            {
                await context.PostAsync($"Hey {userName}, I'm currently configured to search for things in {city}.");

context.ConversationData.SetValue(ContextConstants.UserNameKey, result); } } **

I want to send email from the bot with the context of conversation data. Can you help me please ? I want to

stelazh avatar Apr 20 '17 10:04 stelazh

I have a similar problem. I want to send the result of a waterfall conversation via email. But I cannot get the cross-channel message to work. Only answering on the specific channels seems to work.

Sorry for piggybacking.

EDIT: After long research I found this: https://msdn.microsoft.com/en-us/office/office365/api/mail-rest-operations Ignore the bot functions and use the office365 API directly to send messages.

Zelophobian avatar Jun 27 '17 10:06 Zelophobian

If you still have questions, please open a new issue on BotBuilder repo here: https://github.com/Microsoft/BotBuilder

nwhitmont avatar Jul 05 '17 18:07 nwhitmont