Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 21:08

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Visual Basic: Cannot Connect to smtp server

Discussion on Visual Basic: Cannot Connect to smtp server within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
Ummgh23's Avatar
 
elite*gold: 50
Join Date: Feb 2010
Posts: 390
Received Thanks: 68
Visual Basic: Cannot Connect to smtp server

Moin Leute.

Hab mir ein kleines progrämmchen geschrieben das mir auch emails sendet während es läuft.
Die sub lautet so:

Sub Abschicken()
Dim smtpserver As New SmtpClient
Dim email As New MailMessage
smtpserver.Credentials = New Net.NetworkCredential("MEINE EMAILADRESSE", "MEIN EMAILPASSWORT")
smtpserver.Port = 25
smtpserver.Host = "smtp.web.de"
email = New MailMessage
email.From = New MailAddress("MEINE EMAILADRESSE")
email.To.Add("MEINE EMAILADRESSE")
email.Subject = "Email"
email.Body = erhaltenerText.Text
smtpserver.Send(email)
End Sub

Beim debuggen kommt bei der zeile smtpserver.send(email) ein fehler: Dienst nicht verfügbar. Übertragungskanal wird geschlossen. Die Serverantwort war: Cannot connect to SMTP server 217.72.192.157 (217.72.192.157:25), connect timeout

Habt ihr eine lösung?
Ummgh23 is offline  
Old 02/08/2012, 20:56   #2
 
elite*gold: 50
Join Date: Mar 2010
Posts: 1,373
Received Thanks: 521
Anstatt deinen Code irgendwie manuell ein zu färben, könntest du einfach Code-Tags benutzen.

Trifft die Fehlermeldung denn zu?
jacky919 is offline  
Old 02/08/2012, 21:04   #3
 
Ummgh23's Avatar
 
elite*gold: 50
Join Date: Feb 2010
Posts: 390
Received Thanks: 68
Was meinst mit zutreffen?
Ummgh23 is offline  
Old 02/08/2012, 21:09   #4
 
elite*gold: 50
Join Date: Mar 2010
Posts: 1,373
Received Thanks: 521
Ob der entsprechende E-Mail Dienst wirklich erreichbar ist bzw. unter der angegebenen Addresse.
jacky919 is offline  
Old 02/08/2012, 21:13   #5
 
Ummgh23's Avatar
 
elite*gold: 50
Join Date: Feb 2010
Posts: 390
Received Thanks: 68
das ist alles richtig ja.
Ummgh23 is offline  
Reply


Similar Threads Similar Threads
Visual Basic - E-Mail via Smtp senden [Hilfe]
10/12/2011 - .NET Languages - 3 Replies
Hallo elitepvpers, ich möchte mit visual basic ein tool erstellen wenn man in die textbox was schreibt eine email bekommt. es soll nur eine textbox1 eine progressbar und ein button1 drauf sein also was für ein code muss ich in den button1 einfügen damit alles so läuft wie ich mir das vorstelle ich hab auch die sufu benutz doch die codes funken ned weil ich nur eine textbox hab und auserdem sollte noch die progress bar funken danke im vorraus
Private Server in Visual Basic 6.0, possible?
05/22/2008 - Conquer Online 2 - 3 Replies
Hello fellow elitepvpers! I was wondering if anyone knows the following: Did anyone succeed in making a working private server, written in Visual Basic 6.0? If you can't answer that question, then try this: Do you think it's possible to make a Conquer Online private server, written in Visual Basic 6.0?



All times are GMT +1. The time now is 21:10.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.