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
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