public ActionResult EmailSendMultipleDoc(EmailMultipleAttachment objEmailAttached) { var myList = new List <string>(); if (objEmailAttached.AttachmentForEmailArray != null) { foreach (var multipath in objEmailAttached.AttachmentForEmailArray) { myList.Add(multipath.AttachmentLink); } } var myListReferralIDorFileID = GetRFAReferralFileIDOrReferralID(objEmailAttached.popUpName); _mailService.SendEmail(objEmailAttached.SendEmailText, objEmailAttached.SendEMailTo, objEmailAttached.SendEMailCc, objEmailAttached.Sendsubject, myList.ToArray()); EmailRecordStorage(objEmailAttached.SendEMailTo, objEmailAttached.SendEMailCc, objEmailAttached.Sendsubject, objEmailAttached.SendEmailText, myList, objEmailAttached.popUpName, objEmailAttached.rflID, myListReferralIDorFileID); return(Json(GlobalConst.Message.EmailSendMessage, GlobalConst.ContentTypes.TextHtml)); }
public ActionResult EmailSendMultipleAttachment(EmailMultipleAttachment objEmailAttached) { //Only this method will not save email record because it is sending from Patient URHistory // var myList = new List <string>(); if (objEmailAttached.AttachmentForEmailArray != null) { foreach (var multipath in objEmailAttached.AttachmentForEmailArray) { myList.Add(multipath.AttachmentLink); } } if (Request.Cookies[GlobalConst.ConstantName.PreviousAttachementLinks] != null) { var c = new HttpCookie(GlobalConst.ConstantName.PreviousAttachementLinks); c.Expires = DateTime.Now.AddDays(-1); Response.Cookies.Add(c); } _mailService.SendEmail(objEmailAttached.SendEmailText, objEmailAttached.SendEMailTo, objEmailAttached.SendEMailCc, objEmailAttached.Sendsubject, myList.ToArray()); return(Json(GlobalConst.Message.EmailSendMessage, GlobalConst.ContentTypes.TextHtml)); }