mail problem

N

nicholas

when I send a mail through the webpage the mail is sent twice to the "to"
address an not once to the "to" address and once to the "bcc" address.

Any help appreciated,
Nic

here's my code:

Sub send_email_confirmation ()

'Create an instance of the MailMessage class
Dim objMM as New MailMessage()

'Set the properties
objMM.To = rgdonatormail.text
objMM.From = "(e-mail address removed)"


'If you want to BCC this email to someone else...
'objMM.Bcc = "(e-mail address removed)"

'Send the email in text format
objMM.BodyFormat = MailFormat.Text

'Set the priority - options are High, Low, and Normal
objMM.Priority = MailPriority.Normal

'Set the subject
objMM.Subject = "mysubject"

'Set the body
objMM.Body = "Blablabla"

'Specify to use the default Smtp Server
SmtpMail.SmtpServer = "127.0.0.1"

'Now, to send the message, use the Send method of the
SmtpMail class
SmtpMail.Send(objMM)

End Sub
 
N

nicholas

sorry: forgot to remove the little ' in the beginning of: 'objMM.Bcc =
"(e-mail address removed)"
but even removed it doens't work

thx
 

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