I am using Visual Studio 2003, coding in C# and using .NET 1.1.
I have an application set up to send e-mails, but I need it to send to
multiple recpients in the BCC field. I know that if you just use the e-mail
addresses you can simply separate them with a semicolon. However I need to
include aliases, formatting as MyMsg.Bcc = "\"JOHN SMITH\"
<johnsmith@xyzd omain.com>" etc. When I try doing that and separating with a
semicolon I get a compile error that reads "Only assignment, call, increment,
decrement, and new object expressions can be used as a statement."
What is the correct syntax to use when formatting this way?
I have an application set up to send e-mails, but I need it to send to
multiple recpients in the BCC field. I know that if you just use the e-mail
addresses you can simply separate them with a semicolon. However I need to
include aliases, formatting as MyMsg.Bcc = "\"JOHN SMITH\"
<johnsmith@xyzd omain.com>" etc. When I try doing that and separating with a
semicolon I get a compile error that reads "Only assignment, call, increment,
decrement, and new object expressions can be used as a statement."
What is the correct syntax to use when formatting this way?
Comment