Ic möchte eine mit vb geschriebene asp.net formular über host server zur bestätigung senden lassen, nur problem ist server verlangt authentizierung. Kann jemand mir helfen? Meine
code sicht so aus:
es klappt local sehr gut.
Sub SendIntroMail(ByVal alngBestaetigungsNr)
Dim msgIntro As New MailMessage()
msgIntro.BodyFormat = MailFormat.Html
msgIntro.To = txtVorname.Value & _
" " & txtNachname.Value & _
" (" & txtInserentenId.Value & ")"
msgIntro.From = "[email protected]"
msgIntro.Headers.Add("Reply-To", "[email protected]")
msgIntro.Priority = MailPriority.High
msgIntro.Subject = "Sizin web-ilan.com a üyeliginiz"
msgIntro.Attachments.Add(New MailAttachment( _
Server.MapPath("images/logosol.jpg")))
msgIntro.Body = "Beispiel text"
SmtpMail.SmtpServer = "localhost"
SmtpMail.Send(msgIntro)
End Sub
Danke im voraus
code sicht so aus:
es klappt local sehr gut.
Sub SendIntroMail(ByVal alngBestaetigungsNr)
Dim msgIntro As New MailMessage()
msgIntro.BodyFormat = MailFormat.Html
msgIntro.To = txtVorname.Value & _
" " & txtNachname.Value & _
" (" & txtInserentenId.Value & ")"
msgIntro.From = "[email protected]"
msgIntro.Headers.Add("Reply-To", "[email protected]")
msgIntro.Priority = MailPriority.High
msgIntro.Subject = "Sizin web-ilan.com a üyeliginiz"
msgIntro.Attachments.Add(New MailAttachment( _
Server.MapPath("images/logosol.jpg")))
msgIntro.Body = "Beispiel text"
SmtpMail.SmtpServer = "localhost"
SmtpMail.Send(msgIntro)
End Sub
Danke im voraus