[Solved] How to send mail through more person from this code?
Pass more value splited with comma in targetAddress parameter of SendMessage. Sample code to send mail to multiple persons: public bool SendEmail() { bool status = false; try { //code to send email this._mail = new MailMessage(); this._mail.From = new MailAddress(this.From, this.DisplayName); if (!string.IsNullOrEmpty(this.To)) { var distinctAddress = new List<string>(this.To.Split(‘,’).Distinct()); this.To = string.Empty; foreach (string … Read more