Friday, June 28, 2013

how to send email to several person in BCC section

You need to concat the bcc addresses in your first posted code like:


mail1.MailBcc += "your emailadresses " + ","


and then after the loop you need to remove the last comma like:



char[] stripComma = { ',' };
mail1.MailBcc = mail1.MailBcc.TrimEnd(stripComma);

As explaination: In the loop you are always assigning a new value to your MailBcc property replacing the old one. You can set multiple emailaddresses by separateing them with a comma.



Hannes



If you have got questions about this, just ask.



In a perfect world,

users would never enter data in the wrong form,

files they choose to open would always exist

and code would never have bugs.



My Forum Threads



No comments:

Post a Comment