This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user