Click here to Skip to main content
15,896,540 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionHow to Send Mail in VB.Net 2005 ? Pin
Chintu Shah10-Sep-08 2:37
Chintu Shah10-Sep-08 2:37 
AnswerRe: How to Send Mail in VB.Net 2005 ? Pin
jzonthemtn10-Sep-08 2:48
jzonthemtn10-Sep-08 2:48 
GeneralRe: How to Send Mail in VB.Net 2005 ? Pin
Chintu Shah10-Sep-08 3:07
Chintu Shah10-Sep-08 3:07 
GeneralRe: How to Send Mail in VB.Net 2005 ? Pin
Ashfield10-Sep-08 3:25
Ashfield10-Sep-08 3:25 
QuestionRe: How to Send Mail in VB.Net 2005 ? Pin
jzonthemtn10-Sep-08 7:40
jzonthemtn10-Sep-08 7:40 
AnswerRe: How to Send Mail in VB.Net 2005 ? Pin
Rajesh Anuhya10-Sep-08 5:51
professionalRajesh Anuhya10-Sep-08 5:51 
AnswerRe: How to Send Mail in VB.Net 2005 ? Pin
Christian Graus10-Sep-08 8:32
protectorChristian Graus10-Sep-08 8:32 
AnswerRe: How to Send Mail in VB.Net 2005 ? Pin
NewLaw10-Sep-08 10:39
NewLaw10-Sep-08 10:39 
Hi I hope this helps you out...here you are sending mail through exchange server.
This is is vb.net 2005

Public Sub psSendMail(ByVal sSubject As String, ByVal sBody As String)
        Try

            Dim EmailFrom As String = "SourceServer@Somewhere.com"
            Dim EmailTo As String = "YourEmail@yahoo.com"
                        
            you can use either of these methods to connect to exchange server
            'Dim EmailServer As New System.Net.Mail.SmtpClient("192.0.0.1")
            Dim EmailServer As New System.Net.Mail.SmtpClient("emailservername.com")
            Dim myMessage As New System.Net.Mail.MailMessage(EmailFrom, EmailTo, sSubject, sBody)
            Try
                EmailServer.Send(myMessage)
            Catch
            
            Finally
                myMessage = Nothing
            End Try
        Catch ex As Exception
            
        End Try

    End Sub

QuestionRe-Login Problem Pin
lahsiv10-Sep-08 2:32
lahsiv10-Sep-08 2:32 
AnswerRe: Login Problem Pin
jzonthemtn10-Sep-08 2:44
jzonthemtn10-Sep-08 2:44 
GeneralRe: Login Problem Pin
lahsiv12-Sep-08 3:01
lahsiv12-Sep-08 3:01 
QuestionConvert Byte array into string... Pin
Pushpa Setty10-Sep-08 2:08
Pushpa Setty10-Sep-08 2:08 
AnswerRe: Convert Byte array into string... Pin
jzonthemtn10-Sep-08 2:47
jzonthemtn10-Sep-08 2:47 
QuestionCombining 3 datatables to 1 new datatable. Pin
_teh_10-Sep-08 1:25
_teh_10-Sep-08 1:25 
AnswerRe: Combining 3 datatables to 1 new datatable. Pin
Mycroft Holmes10-Sep-08 15:58
professionalMycroft Holmes10-Sep-08 15:58 
GeneralRe: Combining 3 datatables to 1 new datatable. Pin
_teh_12-Sep-08 5:10
_teh_12-Sep-08 5:10 
GeneralRe: Combining 3 datatables to 1 new datatable. Pin
Mycroft Holmes12-Sep-08 12:51
professionalMycroft Holmes12-Sep-08 12:51 
QuestionCreating Object Pin
Aman.Jen9-Sep-08 23:32
Aman.Jen9-Sep-08 23:32 
JokeRe: Creating Object Pin
Rajesh Anuhya10-Sep-08 0:17
professionalRajesh Anuhya10-Sep-08 0:17 
Questiondatagrideview with button column Pin
turkuman9-Sep-08 22:20
turkuman9-Sep-08 22:20 
AnswerRe: datagrideview with button column Pin
Rajesh Anuhya10-Sep-08 0:25
professionalRajesh Anuhya10-Sep-08 0:25 
QuestionAccessing Java script from activeX which is developed in VB6 Pin
Ravi Bhat 36509679-Sep-08 20:40
Ravi Bhat 36509679-Sep-08 20:40 
Questionproblem with collection and user control.., Please Help. Pin
Rajesh Anuhya9-Sep-08 20:27
professionalRajesh Anuhya9-Sep-08 20:27 
GeneralRe: problem with collection and user control.., Please Help. Pin
Rajesh Anuhya9-Sep-08 20:57
professionalRajesh Anuhya9-Sep-08 20:57 
Questioni geting hresutl exception error with crystal report with vb.net Pin
Jigneshjpatel9-Sep-08 19:18
Jigneshjpatel9-Sep-08 19:18 

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.