/// <summary> /// Sends email info using the specified communication service. /// </summary> /// <param name="commService">The comm service.</param> /// <author>Jurie.smit</author> /// <datetime>2013/01/14-09:20 AM</datetime> /// <exception cref="System.NullReferenceException">ICommService of type EmailCommMessage</exception> public void Send(ICommService <EmailCommMessage> commService) { Dev2Logger.Log.Debug(""); if (commService == null) { throw new NullReferenceException("ICommService<EmailCommMessage>"); } var message = new EmailCommMessage { To = StringResources.FeedbackEmail, Subject = String.Format("Some Real Live Feedback{0}{1}" , String.IsNullOrWhiteSpace(SelectedCategory) ? "" : " : ", SelectedCategory), Content = Comment }; if (HasRecordingAttachment) { Attachments += !string.IsNullOrEmpty(RecordingAttachmentPath) ? RecordingAttachmentPath : ""; } if (HasServerLogAttachment) { Attachments += !string.IsNullOrEmpty(Attachments) ? ";" : ""; Attachments += !string.IsNullOrEmpty(ServerLogAttachmentPath) ? ServerLogAttachmentPath : ""; } if (HasStudioLogAttachment) { Attachments += !string.IsNullOrEmpty(Attachments) ? ";" : ""; Attachments += !string.IsNullOrEmpty(StudioLogAttachmentPath) ? StudioLogAttachmentPath : ""; } message.AttachmentLocation = Attachments; commService.SendCommunication(message); RequestClose(ViewModelDialogResults.Okay); }