public static void Send(string message, string recipientEmail, string recipientName, string type, string senderName) { string from = "*****@*****.**"; string to = "*****@*****.**"; string subject = string.Empty; if (type == SEND_MESSAGE_TYPE.FEEDBACK) { subject = "Feedback from " + senderName; NotificationUtil.SendMail(from, to, subject, message, null); } else { to = recipientEmail; subject = "Invite to Canyoucode from " + senderName; NotificationUtil.SendSystemEmailWithTemplate(to, subject, EMAIL_TEMPLATES.CYC_INVITE, recipientName, senderName); } }