protected string GetSender(Form form) { var sender = form.EmailFrom; return !string.IsNullOrEmpty(sender) ? sender : Repository.EmailSenderAddress; }