diff --git a/Utility/Communications/CommsTransmitterMail.cs b/Utility/Communications/CommsTransmitterMail.cs index 438562ec..f1cef0c8 100644 --- a/Utility/Communications/CommsTransmitterMail.cs +++ b/Utility/Communications/CommsTransmitterMail.cs @@ -37,6 +37,11 @@ namespace Swarmops.Utility.Communications // This is a rather simple mail (no images or stuff like that) + if (string.IsNullOrWhiteSpace (person.Mail)) + { + throw new OutboundCommTransmitException("No valid mail address for " + person.Canonical); + } + try { mail.From = new MailAddress ((string) comm[CommRenderPart.SenderMail], (string) comm[CommRenderPart.SenderName],