Click here to Skip to main content
15,895,142 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Calling webservices asynchronously using java script Pin
Jesse Squire25-Mar-08 3:59
Jesse Squire25-Mar-08 3:59 
GeneralRe: Calling webservices asynchronously using java script Pin
Declan Bright25-Mar-08 4:01
Declan Bright25-Mar-08 4:01 
GeneralRe: Calling webservices asynchronously using java script Pin
gauthee25-Mar-08 4:01
gauthee25-Mar-08 4:01 
GeneralASP:menu control question Pin
ChrisFarrugia25-Mar-08 3:24
ChrisFarrugia25-Mar-08 3:24 
GeneralRe: ASP:menu control question Pin
gauthee25-Mar-08 4:05
gauthee25-Mar-08 4:05 
GeneralRe: ASP:menu control question Pin
Jesse Squire25-Mar-08 4:08
Jesse Squire25-Mar-08 4:08 
GeneralRe: ASP:menu control question Pin
Declan Bright25-Mar-08 4:16
Declan Bright25-Mar-08 4:16 
GeneralSend Mail Pin
mehrdadc4825-Mar-08 2:59
mehrdadc4825-Mar-08 2:59 
Hi, I wrote this code for sending mail:
Dim message As New MailMessage()
message.Body = txtBody.Text
Dim mailAdrs As New MailAddress(txtEmailSender.Text, txtSender.Text)
message.From = mailAdrs
message.Subject = txtSubject.Text

Dim con As New SqlConnection()
con.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings("DrMasanConnectionString").ConnectionString
Dim com As New SqlCommand()
com.CommandText = "Select Email From [User]"
com.Connection = con
con.Open()
Dim reader As SqlDataReader = com.ExecuteReader()

While reader.Read()
message.To.Add(reader("Email"))
End While

Dim smtpC As New SmtpClient()
smtpC.Host = "drmasan.com"
smtpC.Send(message)
But this error appears:
No connection could be made because the target machine actively refused it 72.36.140.90:25
Why?

Best wishes

GeneralRe: Send Mail Pin
eyeseetee25-Mar-08 3:07
eyeseetee25-Mar-08 3:07 
QuestionHow to retrieve the value of textbox using session Pin
anpm25-Mar-08 2:18
anpm25-Mar-08 2:18 
GeneralRe: How to retrieve the value of textbox using session Pin
Jesse Squire25-Mar-08 2:38
Jesse Squire25-Mar-08 2:38 
QuestionRe: How to retrieve the value of textbox using session Pin
anpm25-Mar-08 14:44
anpm25-Mar-08 14:44 
GeneralRe: How to retrieve the value of textbox using session Pin
Jesse Squire25-Mar-08 15:44
Jesse Squire25-Mar-08 15:44 
QuestionRe: How to retrieve the value of textbox using session Pin
anpm25-Mar-08 16:06
anpm25-Mar-08 16:06 
GeneralRe: How to retrieve the value of textbox using session Pin
eyeseetee25-Mar-08 3:00
eyeseetee25-Mar-08 3:00 
Questionrefreshing the page Pin
Pankaj Garg25-Mar-08 0:55
Pankaj Garg25-Mar-08 0:55 
GeneralRe: refreshing the page Pin
eyeseetee25-Mar-08 1:23
eyeseetee25-Mar-08 1:23 
GeneralRe: refreshing the page Pin
Pankaj Garg25-Mar-08 1:42
Pankaj Garg25-Mar-08 1:42 
GeneralRe: refreshing the page Pin
Declan Bright25-Mar-08 1:43
Declan Bright25-Mar-08 1:43 
Questionmessage box button code Pin
Pankaj Garg25-Mar-08 0:18
Pankaj Garg25-Mar-08 0:18 
GeneralRe: message box button code Pin
Christian Graus25-Mar-08 0:37
protectorChristian Graus25-Mar-08 0:37 
QuestionRe: message box button code Pin
Pankaj Garg25-Mar-08 0:48
Pankaj Garg25-Mar-08 0:48 
GeneralRe: message box button code Pin
Christian Graus25-Mar-08 1:02
protectorChristian Graus25-Mar-08 1:02 
QuestionRe: message box button code Pin
Pankaj Garg25-Mar-08 1:14
Pankaj Garg25-Mar-08 1:14 
GeneralRe: message box button code Pin
Christian Graus25-Mar-08 10:01
protectorChristian Graus25-Mar-08 10:01 

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.