Click here to Skip to main content
15,914,258 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: minimize to system tray Pin
aphei11-Apr-07 21:56
aphei11-Apr-07 21:56 
Questionhow to select an item in a treeview via wm_notify message Pin
lee2311-Apr-07 15:35
lee2311-Apr-07 15:35 
AnswerRe: how to select an item in a treeview via wm_notify message Pin
Dave Kreskowiak12-Apr-07 3:50
mveDave Kreskowiak12-Apr-07 3:50 
GeneralRe: how to select an item in a treeview via wm_notify message Pin
lee2312-Apr-07 13:03
lee2312-Apr-07 13:03 
GeneralRe: how to select an item in a treeview via wm_notify message Pin
Dave Kreskowiak12-Apr-07 14:15
mveDave Kreskowiak12-Apr-07 14:15 
GeneralRe: how to select an item in a treeview via wm_notify message Pin
lee2312-Apr-07 15:58
lee2312-Apr-07 15:58 
GeneralRe: how to select an item in a treeview via wm_notify message Pin
Dave Kreskowiak13-Apr-07 1:37
mveDave Kreskowiak13-Apr-07 1:37 
QuestionError sending mail using smtp Pin
A*****11-Apr-07 13:22
A*****11-Apr-07 13:22 
This is the code i am using to try and send an email. I am using vb.net 2003

Private Sub btnSend_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSend.Click<br />
<br />
        If txtto.Text = "" Then<br />
        MsgBox("Please enter the address to send this message, E.g, Someone@someone.com")<br />
        End If<br />
        If txtto.Text <> "" Then<br />
            Dim email As System.Web.Mail.MailMessage = New System.Web.Mail.MailMessage<br />
            email.To = txtto.Text<br />
            email.Cc = txtcc.Text<br />
            email.Bcc = txtbcc.Text<br />
            email.Subject = txtsubject.Text<br />
            email.From = "someone@someone.com"<br />
            email.Body = txtmessage.Text<br />
            Dim sAttach As String = txtattach.Text<br />
            If txtattach.Text <> "" Then<br />
                Dim delim As Char = ","<br />
                Dim sSubstr As String<br />
                For Each sSubstr In sAttach.Split(delim)<br />
                Dim myAttachment As MailAttachment = New MailAttachment(sSubstr)<br />
<br />
                    email.Attachments.Add(myAttachment)<br />
                Next<br />
            End If<br />
            System.Web.Mail.SmtpMail.SmtpServer = ""<br />
            System.Web.Mail.SmtpMail.Send(email)
Error here
End If<br />
    End Sub

Error I get:
An unhandled exception of type 'System.Web.HttpException' occurred in system.web.dll
Additional information: Could not access 'CDO.Message' object.





My blog:[^]

AnswerRe: Error sending mail using smtp Pin
Dave Kreskowiak11-Apr-07 14:35
mveDave Kreskowiak11-Apr-07 14:35 
AnswerRe: Error sending mail using smtp Pin
amaneet11-Apr-07 21:00
amaneet11-Apr-07 21:00 
AnswerRe: Error sending mail using smtp Pin
Dave Kreskowiak12-Apr-07 3:45
mveDave Kreskowiak12-Apr-07 3:45 
AnswerRe: Error sending mail using smtp Pin
A*****12-Apr-07 11:42
A*****12-Apr-07 11:42 
QuestionRather Frustrating Issue Pin
Diagathon11-Apr-07 7:38
Diagathon11-Apr-07 7:38 
AnswerRe: Rather Frustrating Issue Pin
Dave Kreskowiak11-Apr-07 7:44
mveDave Kreskowiak11-Apr-07 7:44 
AnswerRe: Rather Frustrating Issue Pin
Code_Doctor16-Apr-07 17:00
Code_Doctor16-Apr-07 17:00 
QuestionPrinting problem Pin
xjamiex9011-Apr-07 4:14
xjamiex9011-Apr-07 4:14 
AnswerRe: Printing problem Pin
Dave Kreskowiak11-Apr-07 6:26
mveDave Kreskowiak11-Apr-07 6:26 
GeneralRe: Printing problem Pin
xjamiex9011-Apr-07 6:30
xjamiex9011-Apr-07 6:30 
GeneralRe: Printing problem Pin
Dave Kreskowiak11-Apr-07 7:12
mveDave Kreskowiak11-Apr-07 7:12 
QuestionSudden form creation error after no code change Pin
lucjon11-Apr-07 3:17
lucjon11-Apr-07 3:17 
GeneralEdit Pin
lucjon11-Apr-07 3:29
lucjon11-Apr-07 3:29 
GeneralRe: Edit Pin
Dave Kreskowiak11-Apr-07 5:20
mveDave Kreskowiak11-Apr-07 5:20 
AnswerRe: Edit Pin
lucjon12-Apr-07 20:25
lucjon12-Apr-07 20:25 
QuestionAccess Database from Website In vb.net [modified] Pin
Kiran S. S.11-Apr-07 2:48
Kiran S. S.11-Apr-07 2:48 
AnswerRe: Access Database from Website In vb.net Pin
Dave Kreskowiak11-Apr-07 5:18
mveDave Kreskowiak11-Apr-07 5: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.