M
Mario Krsnic
Hello!
I made a feedback form using ASP.NET and VB.NET. It works, but I receive
allways two mails from server instead of one. Why?
Thanks for every idea!
Mario
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.tld
objMail.Subject = txtSubject.Text
objMail.Body = txtBody.Text
objMail.BodyFormat = MailFormat.Text
SmtpMail.SmtpServer = "smtp.my_server"
SmtpMail.Send(objMail)
litStatus.Text = "Sent!"
End Sub
End Class
I made a feedback form using ASP.NET and VB.NET. It works, but I receive
allways two mails from server instead of one. Why?
Thanks for every idea!
Mario
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.tld
objMail.Subject = txtSubject.Text
objMail.Body = txtBody.Text
objMail.BodyFormat = MailFormat.Text
SmtpMail.SmtpServer = "smtp.my_server"
SmtpMail.Send(objMail)
litStatus.Text = "Sent!"
End Sub
End Class