How to send email to multiple recipients?
Opened this issue · 2 comments
raysefo commented
Hi,
I tried this way but no emails were sent, is there a way to send it to multiple recipients?
{
"Name": "CustomEmail",
"Args": {
"ConnectionInfo": {
"NetworkCredentials": {
"UserName": "support@support.com",
"Password": "1234"
},
"FromEmail": "support@support.com",
"MailServer": "smtp.gmail.com",
"EmailSubject": "[{Level}] Multiple Requests",
"Port": "465",
"IsBodyHtml": false,
"EnableSsl": true,
"ToEmail": "to1@gmail.com; to2@gmail.com",
"RestrictedToMinimumLevel": "Error",
"OutputTemplate": "{Timestamp:yyyy-MM-dd HH:mm} [{Level}] {Message}{NewLine}{Exception}"
}
}
}
raysefo commented
Those configurations below did not help either. (Using 2.4 version)
`"ToEmail": "to1@gmail.com; to2@gmail.com"
"ToEmail": "to1@gmail.com, to2@gmail.com"`
nblumhardt commented
I think you may need to remove the spaces after the commas/semicolons. This looks like a bug, would be great to confirm.