/// <summary> /// Add the given email address to 'TO' address list /// </summary> /// <param name="toAddress">The email address to add</param> public void AddToAddress(string toAddress) { if (!string.IsNullOrEmpty(toAddress)) { if (string.IsNullOrEmpty(this.ToAddress)) { this.ToAddress = toAddress; } else if (ToAddress.EndsWith(",")) { this.ToAddress = this.ToAddress + toAddress; } else { this.ToAddress = this.ToAddress + "," + toAddress; } } }