【发布时间】:2017-12-20 17:14:39
【问题描述】:
我有一个使用 FormFlow 创建的示例机器人:
public static IForm<SandwichOrder> BuildForm()
{
OnCompletionAsyncDelegate<SandwichOrder> processOrder = async (context, state) =>
{
await context.PostAsync("We are currently processing your sandwich. We will message you the status.");
};
return new FormBuilder<SandwichOrder>()
.Message("Welcome to the sandwich order bot!")
.Field(nameof(Sandwich))
.Field(nameof(Length))
.Field(nameof(Bread))
.Field(nameof(Cheese))
.AddRemainingFields()
.Message("Thanks for ordering a sandwich!")
.OnCompletion(processOrder)
.Build();
}
表单完成后,控件位于:
OnCompletionAsyncDelegate<SandwichOrder> processOrder = async (context, state) =>
{
await context.PostAsync("We are currently processing your sandwich. We will message you the status.");
};
我想向自己发送一封包含所有表单字段的电子邮件。如何连接 SMTP 并编写电子邮件功能来发送包含所有选定选项和用户输入的电子邮件?
【问题讨论】:
标签: botframework