Click here to Skip to main content
15,892,005 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How can I display a web page on a windows form Pin
SekharOne17-Jan-08 23:01
SekharOne17-Jan-08 23:01 
QuestionNumeric TextBox In VB.Net 2005 Pin
ejaz_pk16-Jan-08 23:01
ejaz_pk16-Jan-08 23:01 
GeneralRe: Numeric TextBox In VB.Net 2005 Pin
Steven J Jowett17-Jan-08 1:25
Steven J Jowett17-Jan-08 1:25 
GeneralRe: Numeric TextBox In VB.Net 2005 Pin
Dave Doknjas17-Jan-08 14:02
Dave Doknjas17-Jan-08 14:02 
GeneralRe: Numeric TextBox In VB.Net 2005 Pin
jamilkhan00717-Jan-08 20:02
jamilkhan00717-Jan-08 20:02 
QuestionHow to implement Cut,Copy,Paste for controls in vb.net 2005 Pin
for120616-Jan-08 22:44
for120616-Jan-08 22:44 
GeneralEmail sending in VB.NET Pin
plural16-Jan-08 21:17
plural16-Jan-08 21:17 
GeneralRe: Email sending in VB.NET Pin
Jats_4ru16-Jan-08 21:57
Jats_4ru16-Jan-08 21:57 
Dim smtpClient As SmtpClient
Dim message As MailMessage
Dim fromAddress As MailAddress
smtpClient = New SmtpClient()
message = New MailMessage()
fromAddress = New MailAddress("From Address") ' Mention your from address
smtpClient.Host = "Your SMTP Host"
' Give your SMTP host address as mail.company.com, specify the host name or ipaddress of your server

'Default port will be 25
smtpClient.Port = 25

'From address will be given as a MailAddress Object
message.From = fromAddress

' To address collection of MailAddress
message.To.Add("To Address") ' Give your To Address
message.Subject = "Subject"

' Message body content
message.IsBodyHtml = True
message.Body = "Body Part"

' Send SMTP mail
smtpClient.Send(message)


Hi check this code, i used this long back. So if there are any small errors fix it. But it will work.

I think you have forgot to mention the SMTP Host, I mean Host IP address at the place of .Host = Server

Jats

GeneralRe: Email sending in VB.NET Pin
plural16-Jan-08 22:36
plural16-Jan-08 22:36 
AnswerRe: Email sending in VB.NET Pin
Steven J Jowett17-Jan-08 0:50
Steven J Jowett17-Jan-08 0:50 
GeneralRe: Email sending in VB.NET Pin
Jats_4ru17-Jan-08 23:24
Jats_4ru17-Jan-08 23:24 
QuestionHow do you save a picture from a web site? Pin
Reveille16-Jan-08 20:48
Reveille16-Jan-08 20:48 
GeneralPlease help me with job scheduling in SQL Server 2005... Pin
Support12316-Jan-08 20:42
Support12316-Jan-08 20:42 
QuestionRe: Please help me with job scheduling in SQL Server 2005... Pin
Steven J Jowett17-Jan-08 1:10
Steven J Jowett17-Jan-08 1:10 
GeneralRe: Please help me with job scheduling in SQL Server 2005... Pin
Support12317-Jan-08 2:41
Support12317-Jan-08 2:41 
GeneralREGEX VS ARRAYLIST.BINARYSEARCH Pin
balakpn16-Jan-08 19:34
balakpn16-Jan-08 19:34 
GeneralSchhhhh! Pin
Guffa17-Jan-08 9:03
Guffa17-Jan-08 9:03 
Generalwant to create Auto Hide window Pin
phoopwint16-Jan-08 17:18
phoopwint16-Jan-08 17:18 
GeneralRe: want to create Auto Hide window Pin
Nilesh Hapse16-Jan-08 17:27
Nilesh Hapse16-Jan-08 17:27 
GeneralRelease/Renew IP app Pin
Aptiva Dave16-Jan-08 16:44
Aptiva Dave16-Jan-08 16:44 
GeneralRe: Release/Renew IP app Pin
Johan Hakkesteegt17-Jan-08 1:13
Johan Hakkesteegt17-Jan-08 1:13 
GeneralRe: Release/Renew IP app Pin
Steven J Jowett17-Jan-08 1:39
Steven J Jowett17-Jan-08 1:39 
GeneralRe: Release/Renew IP app Pin
Johan Hakkesteegt17-Jan-08 1:45
Johan Hakkesteegt17-Jan-08 1:45 
GeneralRe: Release/Renew IP app Pin
Steven J Jowett17-Jan-08 2:03
Steven J Jowett17-Jan-08 2:03 
GeneralRe: Release/Renew IP app Pin
Johan Hakkesteegt17-Jan-08 2:23
Johan Hakkesteegt17-Jan-08 2:23 

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.