B
Barbara Schmidt
Hello,
I made feedback form and it works. There is only a error that the server
sends me two mails instead of one. Here the code:
Imports System.web.Mail
Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles btnSubmit.Click
Dim objMail As New MailMessage()
objMail.From = txtFrom.Text
objMail.To = my_mail_address@my_domaine.de
objMail.Subject = txtSubject.Text
objMail.Body = txtBody.Text
objMail.BodyFormat = MailFormat.Text
SmtpMail.SmtpServer = "myserver.de"
SmtpMail.Send(objMail)
End Sub
What to do to make server sends only one mail?
Barbara Schmidt
I made feedback form and it works. There is only a error that the server
sends me two mails instead of one. Here the code:
Imports System.web.Mail
Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub btnSubmit_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles btnSubmit.Click
Dim objMail As New MailMessage()
objMail.From = txtFrom.Text
objMail.To = my_mail_address@my_domaine.de
objMail.Subject = txtSubject.Text
objMail.Body = txtBody.Text
objMail.BodyFormat = MailFormat.Text
SmtpMail.SmtpServer = "myserver.de"
SmtpMail.Send(objMail)
End Sub
What to do to make server sends only one mail?
Barbara Schmidt