Cloud
Облачный сервис для быстрого и эффективного анализа и визуализации данных для вашего бизнеса без необходимости создания своих приложений и программирования.
EmailReport action and turn on the toolbar button:@Html.StiNetCoreViewer(new StiNetCoreViewerOptions()
{
Actions =
{
GetReport = "GetReport",
EmailReport = "EmailReport",
ViewerEvent = "ViewerEvent"
},
Toolbar = { ShowSendEmailButton = true }
})public IActionResult EmailReport()
{
var options = StiNetCoreViewer.GetEmailOptions(this);
options.AddressFrom = "admin@test.com";
options.Host = "smtp.test.com";
options.UserName = "admin@test.com";
options.Password = "************";
return StiNetCoreViewer.EmailReportResult(this, options);
}GetEmailOptions already contain the recipient, subject and the exported attachment prepared by the viewer; you only supply the delivery details, and EmailReportResult sends the message.