Click here to Skip to main content
15,921,212 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionRe: Threading Problem in VB.NET Pin
Jim Buckley Barrett16-Oct-08 6:21
Jim Buckley Barrett16-Oct-08 6:21 
AnswerRe: Threading Problem in VB.NET Pin
Steven J Jowett16-Oct-08 6:29
Steven J Jowett16-Oct-08 6:29 
QuestionRe: Threading Problem in VB.NET Pin
Jim Buckley Barrett16-Oct-08 6:51
Jim Buckley Barrett16-Oct-08 6:51 
AnswerRe: Threading Problem in VB.NET Pin
Dave Kreskowiak16-Oct-08 6:55
mveDave Kreskowiak16-Oct-08 6:55 
GeneralRe: Threading Problem in VB.NET Pin
Jim Buckley Barrett16-Oct-08 7:00
Jim Buckley Barrett16-Oct-08 7:00 
GeneralRe: Threading Problem in VB.NET Pin
Dave Kreskowiak16-Oct-08 7:13
mveDave Kreskowiak16-Oct-08 7:13 
GeneralRe: Threading Problem in VB.NET Pin
Paul Conrad16-Oct-08 7:46
professionalPaul Conrad16-Oct-08 7:46 
QuestionOpration has timed out... Pin
rohitkpurohit16-Oct-08 4:15
rohitkpurohit16-Oct-08 4:15 
Hi All,

I m getting an error when i m trying to send mail. i m using server IP address and port no. and trying to send mail from local machine which is in LAN.

After Executing an application, it is taking 1 and 1/2 minute when i m tring to send mail. after 1 n 1/2 minute it is showing a message "Operation has timed-out...

Note, On Server Side there is Proxy is set by me. And i m testing application at client side(local machine) which is in LAN.

If everyone know abt then plz help with source code.

my code is below...

Try

Dim Email As New System.Net.Mail.MailMessage( _
"dc@isol.co.in", "dharm_chand83@yahoo.com")

Email.Subject = "test subject"

Email.Body = "this is a test"

Dim mailClient As New System.Net.Mail.SmtpClient()

Dim basicAuthenticationInfo As _
New System.Net.NetworkCredential("dc@isol.co.in", mypassword")

mailClient.Host = "myserver IP Address"

mailClient.UseDefaultCredentials = False

mailClient.EnableSsl = True

mailClient.Port = my server port number

mailClient.Credentials = basicAuthenticationInfo

Email.Priority = MailPriority.High

mailClient.Send(Email)

Catch ex As Exception
MsgBox(ex.Message)
Exit Sub
End Try
MsgBox("Mail has Send")


Regards

Rohit
AnswerRe: Opration has timed out... Pin
Dave Kreskowiak16-Oct-08 6:49
mveDave Kreskowiak16-Oct-08 6:49 
QuestionClosing an application after it was opened with System.Diagnostics.Process.Start Pin
farmer16-Oct-08 2:58
farmer16-Oct-08 2:58 
AnswerRe: Closing an application after it was opened with System.Diagnostics.Process.Start Pin
d_camillo16-Oct-08 3:13
d_camillo16-Oct-08 3:13 
GeneralRe: Closing an application after it was opened with System.Diagnostics.Process.Start Pin
farmer16-Oct-08 4:52
farmer16-Oct-08 4:52 
GeneralRe: Closing an application after it was opened with System.Diagnostics.Process.Start Pin
Dave Kreskowiak16-Oct-08 6:41
mveDave Kreskowiak16-Oct-08 6:41 
GeneralRe: Closing an application after it was opened with System.Diagnostics.Process.Start Pin
Alan N16-Oct-08 6:45
Alan N16-Oct-08 6:45 
AnswerRe: Closing an application after it was opened with System.Diagnostics.Process.Start Pin
Jon_Boy16-Oct-08 6:59
Jon_Boy16-Oct-08 6:59 
QuestionInsufficient memory to continue the execution of the program Pin
jhyn16-Oct-08 0:16
jhyn16-Oct-08 0:16 
AnswerRe: Insufficient memory to continue the execution of the program Pin
Steven J Jowett16-Oct-08 1:26
Steven J Jowett16-Oct-08 1:26 
AnswerRe: Insufficient memory to continue the execution of the program Pin
rohitkpurohit16-Oct-08 4:21
rohitkpurohit16-Oct-08 4:21 
QuestionMaking a colored string Pin
Ballita15-Oct-08 23:30
Ballita15-Oct-08 23:30 
AnswerRe: Making a colored string Pin
Gagan.2015-Oct-08 23:51
Gagan.2015-Oct-08 23:51 
AnswerRe: Making a colored string Pin
Steven J Jowett16-Oct-08 1:29
Steven J Jowett16-Oct-08 1:29 
Questionsynchronization of dataset with sql server database Pin
praveenkumar palla15-Oct-08 20:09
praveenkumar palla15-Oct-08 20:09 
AnswerRe: synchronization of dataset with sql server database Pin
Dave Kreskowiak16-Oct-08 2:28
mveDave Kreskowiak16-Oct-08 2:28 
QuestionDLL Issue Pin
Tauseef A15-Oct-08 17:10
Tauseef A15-Oct-08 17:10 
AnswerRe: DLL Issue Pin
Dave Kreskowiak15-Oct-08 17:48
mveDave Kreskowiak15-Oct-08 17:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.