Reputation: 29683
I have below EmailViewModel
public class EmailViewModel
{
[Required(ErrorMessage = "Select atleast one email id")]
public string[] EmailID {get;set;}
public SelectList Emails{get;set;}
//Other properties
}
So with the above list of Emails, I have below part to add to
smtp
property into RestSharp request
foreach (var to in emodel.EmailID)
{
request.AddParameter("to", to);
}
Now, the only problem is when I send email to multiple recipients, the other email ids will be visible in to
list of each received recipient. I am aware that this can be done with BCC
, but since, the design given to add email ids for the user contains only to
field and thus all email id comes into one list. How can I go hiding these email id of other recipients? Should I add all the email id to the bcc
property instead of to
property or is there any other way to do this?
Update
This is how I execute the email request.
var resp = client.Execute(request);
Upvotes: 2
Views: 1808
Reputation: 29222
There are only two things you can do. One is use BCC, but unless the recipient knows and trusts you it looks suspicious and weird. It also informs the recipients that the exact same email is going to other recipients, so they can tell that nothing about that email is personalized for them. That makes it less appealing.
The other option (probably preferable) is to send an individual email to each recipient.
Upvotes: 3
Reputation: 306
You can't hide the other to addresses.
You either have to send them with BCC, or send one email per address.
Upvotes: 4