CC e-mail CF 3.5

+1 vote
asked Feb 18, 2014 by elena (130 points)
edited Feb 19, 2014

Hi All, Target platform Windows 6. I need to send e-mail from the handheld, but I would like to make all CC invisible. But it doesn't work I still see all CC. Here is my code; Dim smtp As New Smtp Dim mail As New MailMessage()

        mail.From = New MailAddressCollection("server.com")
         mail.To.Add(emailaddressTo)
        mail.CC.Add(New MailAddress("emailaddress1"))
        mail.CC.Add(New MailAddress("emailaddress2"))
        mail.CC.RemoveAt(2)

        mail.Subject = "TEST Receipt Confirmation TEST"
        mail.BodyText = body

1 Answer

0 votes
answered Feb 18, 2014 by Tomas Knopp (58,890 points)
edited Feb 19, 2014

Hi Elena, the CC property is visible to all recipients of the email.

If you would like to have a hidden list of recipients, please use the MailMessage.Bcc property instead.

commented Feb 18, 2014 by elena (130 points)
edited Feb 19, 2014

Thank you Tomas, I missed this property somehow. It works great!

...