Sending an Email from Radzen

I'm using that code(included in the Thread),
But Not working also no error is displaying
Also the Screen stop responding, then i've to refesh the page but no mail is sending

I am afraid I can't help you further. I recommend debugging the method with Visual Studio to see what the problem is.

1 Like

After following this thread, I am not able to see the new sendMail method in my 'Invoke Method' list, even after a refresh. Does the method need to be referenced elsewhere in my project models?

1 Like

Hello,
I created an Radzen-Blazor-Project and add the upper mentioned MailController.cs which contains

namespace MyProject.Controllers
{
    public partial class MailController : Controller
    {
        [HttpPost]
        public async System.Threading.Tasks.Task<IActionResult> SendMail(string to, string cc, string subject, string text)
...

but in Radzen IDE the "SendMail(...)" isn't visible nowhere.

This thread is about Angular. For Blazor you should use a custom method.