Das Senden klappt ganz normal, aber der Anhang wird nicht mitgesendet ;-/, bin bei T-online (smtp)
Also so läufts gut:
Hilfe wäre nett
Also so läufts gut:
VB.NET-Quellcode
- Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
- Try
- Dim text As String
- text = ("Capture im Anhang:")
- Dim myClient As New Net.Mail.SmtpClient("smtpmail.t-online.de")
- myClient.Credentials = New Net.NetworkCredential("meineEmail", "Passwort")
- myClient.Send("meineemail", "meineemail", "Capture", text)
- Dim MsgAtt As New Attachment("C:\Users\BlackSky\Desktop\Hallo.txt")
- MsgBox("gesendet")
- Catch ex As Exception
- MsgBox("Fehler beim Senden!")
- End Try
- End Sub
Hilfe wäre nett
C# Developer
Learning C++
Learning C++