Click here to Skip to main content
15,898,874 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: excel application process still runnig afer it get closed Pin
Dave Kreskowiak22-Dec-03 5:16
mveDave Kreskowiak22-Dec-03 5:16 
Generalcustom property editor Pin
cnurse21-Dec-03 3:32
cnurse21-Dec-03 3:32 
GeneralWhere can i get articles about Text file handling in Vb.Net Pin
MJay21-Dec-03 3:31
MJay21-Dec-03 3:31 
GeneralRe: Where can i get articles about Text file handling in Vb.Net Pin
Mike Ellison22-Dec-03 6:34
Mike Ellison22-Dec-03 6:34 
Generala newbie with a question about .net SDK Pin
Dave Pursey20-Dec-03 17:14
Dave Pursey20-Dec-03 17:14 
GeneralRe: a newbie with a question about .net SDK Pin
Corinna John21-Dec-03 10:10
Corinna John21-Dec-03 10:10 
Questionxmltextwriter how to append new elements? Pin
rubs20-Dec-03 13:08
rubs20-Dec-03 13:08 
Generalemail Pin
Michael Bailey20-Dec-03 11:38
Michael Bailey20-Dec-03 11:38 
Hi all!
I’m new to the group; I had a friend in my computer science class tell me about the group. So my problem is this.
I’m building a program for a charity group what they want it to do is take a picture of someone via webcam and then email it to anyone the use specifies a lot like the one at the Microsoft Museum If anyone has been there. So it has turned into my class project. I have ran into a problem with the sending of the email.
The program won’t be using a local SMTP server it will be using one like Comcast (smtp.comcast.net) when I run the program everything is fine until it runs the last line of code and then I get this error message.


An unhandled exception of type 'System.Web.HttpException' occurred in system.web.dll

Additional information: Could not access 'CDO.Message' object.


I was wondering if anyone could help me with it?
I have tried declaring the SMTP server in different areas but nothing seems to work

Thanks for any help
<br />
 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click<br />
        Dim <big>objEmailMessage</big> As System.Web.Mail.MailMessage<br />
        Dim objSMTPServer As System.Web.Mail.SmtpMail<br />
        objSMTPServer.SmtpServer = "smtp.comcast.net"<br />
<br />
        objEmailMessage = New System.Web.Mail.MailMessage<br />
        With objEmailMessage<br />
            .To = "crazyboutcomputers1@comcast.net"<br />
            .From = txtFrom.Text<br />
            .Subject = "Great Job!"<br />
            .Body = "Want all my money?"<br />
<br />
        End With<br />
<br />
     <big>objSMTPServer.Send(objEmailMessage)</big><br />
<br />
    End Sub<br />

The code in red at the bottom is what im have truble with
and when i click go to definition it gos to the one in green at the top.
Agen Thanks for any Help
GeneralRe: email Pin
Dave Kreskowiak20-Dec-03 12:41
mveDave Kreskowiak20-Dec-03 12:41 
GeneralRe: email Pin
Michael Bailey20-Dec-03 13:27
Michael Bailey20-Dec-03 13:27 
GeneralRe: email Pin
Dave Kreskowiak21-Dec-03 6:19
mveDave Kreskowiak21-Dec-03 6:19 
GeneralTo generate An Autogenerated field Pin
Softtips200420-Dec-03 2:05
Softtips200420-Dec-03 2:05 
GeneralRe: To generate An Autogenerated field Pin
Dave Kreskowiak20-Dec-03 2:41
mveDave Kreskowiak20-Dec-03 2:41 
QuestionHow to handle javascript popups on AxWebbrowser Pin
Anonymous20-Dec-03 1:57
Anonymous20-Dec-03 1:57 
GeneralRuntime Datasource Binding in Crystal Reports Pin
srieen20-Dec-03 1:02
srieen20-Dec-03 1:02 
QuestionComm In .NET? Pin
Member 76608419-Dec-03 23:57
Member 76608419-Dec-03 23:57 
QuestionThumbnail an html page directly from IE programmatically? Pin
gregcost19-Dec-03 11:43
gregcost19-Dec-03 11:43 
Generalrecursive routine Pin
frank987619-Dec-03 9:14
frank987619-Dec-03 9:14 
GeneralRe: recursive routine Pin
Charlie Williams19-Dec-03 16:43
Charlie Williams19-Dec-03 16:43 
GeneralRe: recursive routine Pin
frank987622-Dec-03 8:13
frank987622-Dec-03 8:13 
GeneralRe: recursive routine Pin
Charlie Williams22-Dec-03 11:14
Charlie Williams22-Dec-03 11:14 
GeneralServices &amp; accessing file info Pin
Stacy Springer19-Dec-03 8:54
Stacy Springer19-Dec-03 8:54 
GeneralRe: Services &amp; accessing file info Pin
Mike Ellison19-Dec-03 9:49
Mike Ellison19-Dec-03 9:49 
GeneralRe: Services &amp; accessing file info Pin
Stacy Springer19-Dec-03 9:57
Stacy Springer19-Dec-03 9:57 
GeneralRe: Services &amp; accessing file info Pin
Dave Kreskowiak19-Dec-03 13:45
mveDave Kreskowiak19-Dec-03 13:45 

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.