This commit is contained in:
2023-01-18 00:41:04 +00:00
parent 64337d1e42
commit a2fda0e738
4 changed files with 43 additions and 27 deletions

View File

@@ -21,6 +21,23 @@ namespace Sockeye.Util
public async Task SendEmailAsync(string email, string subject, string body, Sockeye.Models.GlobalOpsNotificationSettings smtpSettings, string attachPDFPath = null, string forceFileName = null, string htmlBody = null)
{
#if (DEBUG)
switch (email)
{
case "support@ayanova.com":
case "johncrdnl@gmail.com":
case "gzmailadmin@gmail.com":
case "sales@ayanova.com":
case "support@onayanova.com":
case "techworks@shaw.ca":
break;
default:
System.Diagnostics.Debug.WriteLine($"DANGER: about to email someone {email} outside our test network");
//DANGER: about to email someone outside our test network
System.Diagnostics.Debugger.Break();
break;
}
#endif
try
{
var message = new MimeMessage();