Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > cdo.message object

Reply
Thread Tools

cdo.message object

 
 
Kenneth Windish
Guest
Posts: n/a
 
      10-15-2005
Hi,

I am using the following syntax:
Dim objMM1 As New System.Web.Mail.MailMessage
objMM1.To = ("someone")
objMM1.From = textbox1.Text + " @ " + textbox3.text
objMM1.BodyFormat = Mail.MailFormat.Text
objMM1.Priority = mail.MailPriority.Normal
objMM1.Subject = "Support"
objMM1.Body = " `text goes here' "
dim ok as boolean =true
Try
mail.SmtpMail.SmtpServer = " `mail.server.name' "
mail.SmtpMail.Send(objMM1)
Catch ehttp As System.Web.HttpException
panel1.visible=true
label3.text="Mail Error"
label1.text=(ehttp.Message)
ok=false
End Try

I recieve the following error message:
Could not access 'CDO.Message' object.

does any one know what I am doing wrong here? This was all working fine
until the hosting company did maintenance on there server and now I am
receiving this error.

TIA
Ken


 
Reply With Quote
 
 
 
 
Ken Cox [Microsoft MVP]
Guest
Posts: n/a
 
      10-15-2005
Hi Ken,

You may have checked them but there are a bunch of suggestions here for that
error:

http://www.systemwebmail.com/faq/4.2.3.aspx#4.2.3

Ken
Microsoft MVP [ASP.NET]


"Kenneth Windish" <> wrote in message
news:%...
> Hi,
>
> I am using the following syntax:
> Dim objMM1 As New System.Web.Mail.MailMessage
> objMM1.To = ("someone")
> objMM1.From = textbox1.Text + " @ " + textbox3.text
> objMM1.BodyFormat = Mail.MailFormat.Text
> objMM1.Priority = mail.MailPriority.Normal
> objMM1.Subject = "Support"
> objMM1.Body = " `text goes here' "
> dim ok as boolean =true
> Try
> mail.SmtpMail.SmtpServer = " `mail.server.name' "
> mail.SmtpMail.Send(objMM1)
> Catch ehttp As System.Web.HttpException
> panel1.visible=true
> label3.text="Mail Error"
> label1.text=(ehttp.Message)
> ok=false
> End Try
>
> I recieve the following error message:
> Could not access 'CDO.Message' object.
>
> does any one know what I am doing wrong here? This was all working fine
> until the hosting company did maintenance on there server and now I am
> receiving this error.
>
> TIA
> Ken
>
>



 
Reply With Quote
 
 
 
 
Kenneth Windish
Guest
Posts: n/a
 
      10-15-2005
Thanks for the info.

Ken

"Ken Cox [Microsoft MVP]" <> wrote in message
news:...
> Hi Ken,
>
> You may have checked them but there are a bunch of suggestions here for
> that error:
>
> http://www.systemwebmail.com/faq/4.2.3.aspx#4.2.3
>
> Ken
> Microsoft MVP [ASP.NET]
>
>
> "Kenneth Windish" <> wrote in message
> news:%...
>> Hi,
>>
>> I am using the following syntax:
>> Dim objMM1 As New System.Web.Mail.MailMessage
>> objMM1.To = ("someone")
>> objMM1.From = textbox1.Text + " @ " + textbox3.text
>> objMM1.BodyFormat = Mail.MailFormat.Text
>> objMM1.Priority = mail.MailPriority.Normal
>> objMM1.Subject = "Support"
>> objMM1.Body = " `text goes here' "
>> dim ok as boolean =true
>> Try
>> mail.SmtpMail.SmtpServer = " `mail.server.name' "
>> mail.SmtpMail.Send(objMM1)
>> Catch ehttp As System.Web.HttpException
>> panel1.visible=true
>> label3.text="Mail Error"
>> label1.text=(ehttp.Message)
>> ok=false
>> End Try
>>
>> I recieve the following error message:
>> Could not access 'CDO.Message' object.
>>
>> does any one know what I am doing wrong here? This was all working fine
>> until the hosting company did maintenance on there server and now I am
>> receiving this error.
>>
>> TIA
>> Ken
>>
>>

>
>



 
Reply With Quote
 
Patrick.O.Ige
Guest
Posts: n/a
 
      10-17-2005
That site has very good info regarding System.Mail

"Kenneth Windish" <> wrote in message
news:uX9$...
> Thanks for the info.
>
> Ken
>
> "Ken Cox [Microsoft MVP]" <> wrote in message
> news:...
> > Hi Ken,
> >
> > You may have checked them but there are a bunch of suggestions here for
> > that error:
> >
> > http://www.systemwebmail.com/faq/4.2.3.aspx#4.2.3
> >
> > Ken
> > Microsoft MVP [ASP.NET]
> >
> >
> > "Kenneth Windish" <> wrote in message
> > news:%...
> >> Hi,
> >>
> >> I am using the following syntax:
> >> Dim objMM1 As New System.Web.Mail.MailMessage
> >> objMM1.To = ("someone")
> >> objMM1.From = textbox1.Text + " @ " + textbox3.text
> >> objMM1.BodyFormat = Mail.MailFormat.Text
> >> objMM1.Priority = mail.MailPriority.Normal
> >> objMM1.Subject = "Support"
> >> objMM1.Body = " `text goes here' "
> >> dim ok as boolean =true
> >> Try
> >> mail.SmtpMail.SmtpServer = " `mail.server.name' "
> >> mail.SmtpMail.Send(objMM1)
> >> Catch ehttp As System.Web.HttpException
> >> panel1.visible=true
> >> label3.text="Mail Error"
> >> label1.text=(ehttp.Message)
> >> ok=false
> >> End Try
> >>
> >> I recieve the following error message:
> >> Could not access 'CDO.Message' object.
> >>
> >> does any one know what I am doing wrong here? This was all working

fine
> >> until the hosting company did maintenance on there server and now I am
> >> receiving this error.
> >>
> >> TIA
> >> Ken
> >>
> >>

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Object creation - Do we really need to create a parent for a derieved object - can't the base object just point to an already created base object jon wayne C++ 9 09-22-2005 02:06 AM
Error:Object reference not set to an instance of an object. Suresh Kojhani ASP .Net 1 07-29-2004 12:10 PM
Error !Object reference not set to an instance of an object. !!! Help Parthiv Joshi ASP .Net 2 07-02-2004 10:28 AM
Object reference not set to an instance of an object. yysiow ASP .Net 1 07-12-2003 03:30 PM
Object reference not set to an instance of an object. Chris Fink ASP .Net 2 07-03-2003 06:48 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57