Visual Basic Code , VB.NET Code, VB Code
  Home   :  Code   :  Forums   :  Submit   :  Mailing List   :  About   :  Contact


Cant send email in another computer using system.net.mail


Cant send email in another computer using system.net.mail

Author
Message
teszero
teszero
Forum God
Forum God (856 reputation)Forum God (856 reputation)Forum God (856 reputation)Forum God (856 reputation)Forum God (856 reputation)Forum God (856 reputation)Forum God (856 reputation)Forum God (856 reputation)Forum God (856 reputation)

Group: Forum Members
Posts: 2, Visits: 4
Hello. I am developing a very simple smtp email sender.

I made it, i tested it, and it works fine but... only in my developer computer.



In all other computers that i install my application, it gives me "Failure sending email"

I am developing in the same network than the other machines, all computer under windows xp.



I found a difference, some of the computer uses netframework 3.5 and i was developing this application in netframework 4.0.

I tryed to change it to 3.0 and 3.5 but... with the same result...



Can it be because the class import?

in two days... i cant find the solution Sad



do i need to install something in the other machines? or add a reference file?



my code is this:



_______________________________________________



Imports System.Net.Mail



Public Class Form1



Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

On Error GoTo 11

Dim msg As New MailMessage()

msg.From = New MailAddress("test@gmail.com", "Email Test")

msg.To.Add("myemail@yahoo.com")

msg.Subject = "Hey, this is a test"

msg.Body = "smtp email sending test"

Dim client As New SmtpClient()

client.Host = "mysmtp"

client.Port = 25

client.Send(msg)

MsgBox("OK")

GoTo 10



11:

MsgBox(Err.Description)

10:

End Sub





End Class



_____________________________________________________





Thank you in advance for your help.



Regards

Pedro Silva

Portugal
teszero
teszero
Forum God
Forum God (856 reputation)Forum God (856 reputation)Forum God (856 reputation)Forum God (856 reputation)Forum God (856 reputation)Forum God (856 reputation)Forum God (856 reputation)Forum God (856 reputation)Forum God (856 reputation)

Group: Forum Members
Posts: 2, Visits: 4
i tryed to tellnet to my smtp server and... in my computer it allows me, and in all the others computers it denys me.

But... my computer is in the same work situation, i just installed Vb.net express on it...



is any way to overpass it?



Regards.

Destroyer
Destroyer
Forum God
Forum God (41K reputation)Forum God (41K reputation)Forum God (41K reputation)Forum God (41K reputation)Forum God (41K reputation)Forum God (41K reputation)Forum God (41K reputation)Forum God (41K reputation)Forum God (41K reputation)

Group: Forum Members
Posts: 244, Visits: 188
Check the antivirus settings on the client. They may be interfering with sending of the mail.

Destroyer Smooooth
GO


Similar Topics


Reading This Topic


Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....

















A1VBCode Forums


Search