Base solution for your next web application
Open Closed

ASP net Core multiple recipient #10455


User avatar
0
logitsolutions created

**Dotnet Core + Angular

Version 10.3

**

While try to send Emails to multiple recipient ,not working

Dotnet Core

await _emailSender.SendAsync(new MailMessage{To = { "[email protected]", "[email protected]" },Subject = subject,Body = emailTemplate.ToString(),IsBodyHtml = true});

Email not receiving at recipients but when we give a single email address its working

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Could you try this way ?

    var message = new MailMessage{To = { "[email protected]" },Subject = subject,Body = emailTemplate.ToString(),IsBodyHtml = true};
    message..To.Add(new MailAddress("[email protected]"));
    
    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)