BCC field in an email

G

Guest

Hi,

Am I missing something important here? -- I am trying to send an email to an
address provided by the user, and then send a bcc email to myself.
So I have tried the code below, however, it will not send an email to the
user and send me the bcc email. It will send the email to the user and then
not to me.
I am using Outlook.

MailMessage msg = new MailMessage();
msg.To = "(e-mail address removed)";
msg.Bcc = "(e-mail address removed)";
msg.From = "(e-mail address removed)";
msg.Subject = "test";
msg.Body = "test";
SmtpMail.SmtpServer = "00.0.0.000"; //Dummy value here for display purposes
SmtpMail.Send(msg);

Am I overlooking an important point?

thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top