Email in Blazor WASM (WebAssembly) for viewer
Posted: Fri Nov 07, 2025 2:50 am
Hi,
I'm working on a Blazor WebAssembly project and have a ReportPreview Razor page that uses the built-in Stimulsoft viewer. I’d like to use the viewer’s Send Email button to allow users to email exported reports.
However, for security reasons, I want the actual email sending (SMTP credentials, etc.) to be handled server-side, not from the client.
My question is:
Can I use the OnEmailReport event to intercept the email request and pass the exported report along with the email settings set by the user to a Blazor method, which then calls a server-side API to send the email? Or is this event strictly client-side, requiring me to write custom JS to handle the export and server call manually?
Any guidance or examples would be helpful.
Thanks.
I'm working on a Blazor WebAssembly project and have a ReportPreview Razor page that uses the built-in Stimulsoft viewer. I’d like to use the viewer’s Send Email button to allow users to email exported reports.
However, for security reasons, I want the actual email sending (SMTP credentials, etc.) to be handled server-side, not from the client.
My question is:
Can I use the OnEmailReport event to intercept the email request and pass the exported report along with the email settings set by the user to a Blazor method, which then calls a server-side API to send the email? Or is this event strictly client-side, requiring me to write custom JS to handle the export and server call manually?
Any guidance or examples would be helpful.
Thanks.