Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to send email to multiple recipients? #119

Open
raysefo opened this issue Jun 1, 2023 · 2 comments
Open

How to send email to multiple recipients? #119

raysefo opened this issue Jun 1, 2023 · 2 comments

Comments

@raysefo
Copy link

raysefo commented Jun 1, 2023

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": "[email protected]",
              "Password": "1234"
            },
            "FromEmail": "[email protected]",
            "MailServer": "smtp.gmail.com",
            "EmailSubject": "[{Level}] Multiple Requests",
            "Port": "465",
            "IsBodyHtml": false,
            "EnableSsl": true,
            "ToEmail": "[email protected]; [email protected]",
            "RestrictedToMinimumLevel": "Error",
            "OutputTemplate": "{Timestamp:yyyy-MM-dd HH:mm} [{Level}] {Message}{NewLine}{Exception}"
          }

        }
      }
@raysefo
Copy link
Author

raysefo commented Jun 7, 2023

Those configurations below did not help either. (Using 2.4 version)

`"ToEmail": "[email protected]; [email protected]"

"ToEmail": "[email protected], [email protected]"`

@nblumhardt
Copy link
Member

I think you may need to remove the spaces after the commas/semicolons. This looks like a bug, would be great to confirm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants