WinFuture-Forum.de: Variabler Empfänger Im Kontaktformular - WinFuture-Forum.de

Zum Inhalt wechseln

Nachrichten zum Thema: Entwicklung
  • 2 Seiten +
  • 1
  • 2

Variabler Empfänger Im Kontaktformular

#16 Mitglied ist offline   amalbhalbe 

  • Gruppe: aktive Mitglieder
  • Beiträge: 639
  • Beigetreten: 14. Mai 04
  • Reputation: 0
  • Geschlecht:Männlich
  • Wohnort:BMW E38 740i V8 286 PS 4.4L Hubraum
  • Interessen:Design is the production of braindysentery

geschrieben 31. August 2008 - 20:41

Hm .. leg mal ne neue Datei an und versuch mal das hier

 'contstruct the message to be sent to the customer
							Dim MailServer As String = "Server"
							Dim ToEmail As String = _newPass.Text
							Dim ToName As String = first + " " + last
							Dim FromEmail As String = "[email protected]"
							Dim FromName As String = "Customer Support"
							Dim Subject As String = "Do Not Reply: Your Forgotten Password"
							Dim Body As String = "Message Body"
							Dim o_Client As System.Net.Mail.SmtpClient = New System.Net.Mail.SmtpClient(MailServer)
							Dim o_FromAddress As System.Net.Mail.MailAddress = New System.Net.Mail.MailAddress(FromEmail, FromName)
							Dim o_ToAddress As System.Net.Mail.MailAddress = New System.Net.Mail.MailAddress(ToEmail, ToName)
							Dim o_Message As System.Net.Mail.MailMessage = New System.Net.Mail.MailMessage(o_FromAddress, o_ToAddress)
							o_Message.Subject = Subject
							o_Message.Body = Body

							Try
								o_Client.Send(o_Message)
							
							Catch exc As Exception
							
							End Try

Pc is my life, amd my world, intel my enemy and Linux my Hell
0

Anzeige



Thema verteilen:


  • 2 Seiten +
  • 1
  • 2

1 Besucher lesen dieses Thema
Mitglieder: 0, Gäste: 1, unsichtbare Mitglieder: 0