.NET Core 6 required.
Config file (json) :
- Update the "locale" with either 'en' or 'fr'.
- The field 'MailSubject' can be left as they are, but you can put whatever you want.
- The field "GiftIdeas" (into "Participants") is not mandatory. You can add it if the person has provided a list of gift ideas.
- Other fields must bu updated according to your configuration.
{
"locale": "en",
"MailSubject": "Secret Santa",
"SmtpEmail": "[email protected]",
"SmtpPassword": "ABCD1234",
"SmtpHost": "smtp.XXXX.XXX",
"SmtpPort": "465",
"Participants": [
{
"Name": "Alice",
"Email": "[email protected]",
"GiftIdeas" : [
"The album Appetite for Destruction from Guns n' Roses",
"A new pillow"
]
},
{
"Name": "Bob",
"Email": "[email protected]",
"GiftIdeas" : []
},
{
"Name": "Foobar",
"Email": "[email protected]"
}
]
}
Then:
dotnet run -- -c c://path/to/secret_santa_config.json