Click here to Skip to main content
15,897,334 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: Application closing [modified] Pin
Dave Kreskowiak27-Jun-06 6:56
mveDave Kreskowiak27-Jun-06 6:56 
GeneralRe: Application closing Pin
jon-8028-Jun-06 7:07
professionaljon-8028-Jun-06 7:07 
QuestionManipulating MS Word from VB 6.0 Pin
Motor7527-Jun-06 2:41
Motor7527-Jun-06 2:41 
AnswerRe: Manipulating MS Word from VB 6.0 Pin
Edbert P27-Jun-06 16:34
Edbert P27-Jun-06 16:34 
AnswerRe: Manipulating MS Word from VB 6.0 Pin
Jesper hoegh29-Jun-09 9:58
Jesper hoegh29-Jun-09 9:58 
QuestionCalling C# from VB 6.0 Pin
Motor7527-Jun-06 2:39
Motor7527-Jun-06 2:39 
AnswerRe: Calling C# from VB 6.0 Pin
Robert Rohde27-Jun-06 3:48
Robert Rohde27-Jun-06 3:48 
Questionsmpt Mail - Help Needed Pin
Jats_4ru27-Jun-06 1:36
Jats_4ru27-Jun-06 1:36 
Hi All - Need ur help

Hi, I am jats working as a s/w Developer. I need some help from u.

I am new to .net and using it from past 2 weeks. During my project i got a problem.
My project has a requirement of sending mail to some mail a/c, when user clicks on a submit button.

I wrote some code for it but i am getting a Inner Exception saying.....
"Failure sending mail.Unable to read data from the transport connection:An existing connection was forcibly closed by the remote host"

The code is as follows………

Private Sub SendMail()
Dim smtpClient As SmtpClient
Dim message As MailMessage
Dim fromAddress As MailAddress

smtpClient = New SmtpClient()
message = New MailMessage()

Try
fromAddress = New MailAddress("from@xxx.com")
smtpClient.Host = "Smtp Server string"
smtpClient.Port = 25

message.From = fromAddress
message.To.Add("to@xxx.com")
message.Subject = "Feedback"
message.Body = "This is Body Part"

smtpClient.Send(message) '*****Raising Exception here*****
MsgBox("Email successfully sent.")

Catch ex As Exception
MsgBox("Send Email Failed." + ex.Message + ex.InnerException.Message)
End Try
End Sub

Note: I am not using any mail server is it neccesary to do so. If it is plz specify me One mail server.

Plz send me some Document to relevent topic if u hav it. And ur suggesstion on this topic.

Waiting for a positive response…..

jats.
jats_4ru@yahoo.co.in
AnswerRe: smpt Mail - Help Needed Pin
Chris Losinger27-Jun-06 1:44
professionalChris Losinger27-Jun-06 1:44 
AnswerRe: smpt Mail - Help Needed Pin
Hamid_RT27-Jun-06 2:36
Hamid_RT27-Jun-06 2:36 
AnswerRe: smpt Mail - Help Needed Pin
Stlan27-Jun-06 2:48
Stlan27-Jun-06 2:48 
GeneralRe: smpt Mail - Help Needed Pin
J4amieC27-Jun-06 2:52
J4amieC27-Jun-06 2:52 
GeneralRe: smpt Mail - Help Needed Pin
AbhishekBK27-Jun-06 2:58
AbhishekBK27-Jun-06 2:58 
AnswerRe: smpt Mail - Help Needed Pin
Super Lloyd27-Jun-06 3:01
Super Lloyd27-Jun-06 3:01 
AnswerRe: smpt Mail - Help Needed [modified] Pin
Dave Kreskowiak27-Jun-06 4:58
mveDave Kreskowiak27-Jun-06 4:58 
GeneralRe: smpt Mail - Help Needed Pin
Jats_4ru27-Jun-06 23:45
Jats_4ru27-Jun-06 23:45 
AnswerRe: smpt Mail - Help Needed Pin
Edbert P27-Jun-06 16:10
Edbert P27-Jun-06 16:10 
GeneralRe: smpt Mail - Help Needed Pin
Jats_4ru27-Jun-06 23:47
Jats_4ru27-Jun-06 23:47 
Questionrename treenode at runtime Pin
mini878027-Jun-06 1:20
mini878027-Jun-06 1:20 
AnswerRe: rename treenode at runtime Pin
mini878027-Jun-06 1:44
mini878027-Jun-06 1:44 
QuestionHow to raise event of ITemplate using vb.net, Pls use follwing code Pin
BalasahebK27-Jun-06 0:54
BalasahebK27-Jun-06 0:54 
QuestionSystem Folder Pin
Anil_vvs27-Jun-06 0:33
Anil_vvs27-Jun-06 0:33 
AnswerRe: System Folder Pin
sathish s27-Jun-06 2:10
sathish s27-Jun-06 2:10 
Questioninternet explorer idownloadmanager interface Pin
Qaiser_Iftikhar26-Jun-06 23:54
Qaiser_Iftikhar26-Jun-06 23:54 
QuestionVB.NET and file on Remote IIS Pin
Peace2u26-Jun-06 21:53
Peace2u26-Jun-06 21:53 

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.