PC Review


Reply
Thread Tools Rate Thread

Could not access CDO.Message

 
 
Guest
Posts: n/a
 
      22nd Feb 2004
Hi,

I am getting an exception thrown when i am trying to send mail using the
following code

Dim msg As MailMessage = New MailMessage()

msg.From = Forum + " <" + (E-Mail Removed) + ">"

msg.To = TestUser+ " <" + (E-Mail Removed) + ">"

msg.Subject = subject

If html Then

msg.BodyFormat = MailFormat.Html

Else

msg.BodyFormat = MailFormat.Text

End If

msg.Body = emailBodyMessage + emailBodyAppendMessage

SmtpMail.SmtpServer = mail.developer-source.co.uk

Try

SmtpMail.Send(msg)

Catch ex As Exception

Return False

End Try

I have iis installed and the SMTP server service is running, the smtp server
specified is setup as an alias on the local smtp server in iis.

Could anyone tell me why this error is occurring and any possible
resolutions to resolve this error

Thanks in advance
Neil Stevens



 
Reply With Quote
 
 
 
 
Cor
Guest
Posts: n/a
 
      22nd Feb 2004
Hi Neil,

Errors are mostly because the ip adress of the smtp server is the wrong one
or that it has security issues.

However, when you post to a newsgroup it is better to tell what is the error
when you ask for the reason.

Here some links

http://www.microeye.com/resources/res_outlookvsnet.htm

http://msdn.microsoft.com/library/de...classtopic.asp

http://msdn.microsoft.com/library/de...figuration.asp

http://msdn.microsoft.com/library/de...vr_cdo_top.asp


The four CDOs are (in chronological order):

- CDO.DLL : CDO version 1.2.1
- CDONTS.DLL : CDO version 1.2.1 for Windows NT Server (not the same as CDO
version 1.2.1!)
- CDOSYS.DLL : CDO for Windows 2000
- CDOEX.DLL : CDO for Exchange 2000 Server


I hope this helps a little bit?

Cor

> Hi,
>
> I am getting an exception thrown when i am trying to send mail using the
> following code
>
> Dim msg As MailMessage = New MailMessage()
>
> msg.From = Forum + " <" + (E-Mail Removed) + ">"
>
> msg.To = TestUser+ " <" + (E-Mail Removed) + ">"
>
> msg.Subject = subject
>
> If html Then
>
> msg.BodyFormat = MailFormat.Html
>
> Else
>
> msg.BodyFormat = MailFormat.Text
>
> End If
>
> msg.Body = emailBodyMessage + emailBodyAppendMessage
>
> SmtpMail.SmtpServer = mail.developer-source.co.uk
>
> Try
>
> SmtpMail.Send(msg)
>
> Catch ex As Exception
>
> Return False
>
> End Try
>
> I have iis installed and the SMTP server service is running, the smtp

server
> specified is setup as an alias on the local smtp server in iis.
>
> Could anyone tell me why this error is occurring and any possible
> resolutions to resolve this error
>
> Thanks in advance
> Neil Stevens
>
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Replace Access error message with more descriptive message. Sandy Burgess Microsoft Access Form Coding 4 12th Dec 2007 11:59 PM
Error message when trying to access link in Outlook message =?Utf-8?B?TWFydHlB?= Microsoft Outlook Discussion 0 17th Jul 2005 02:39 PM
Send message through Access/VB to online users of a Multi-User Access Applicatio Manchery Microsoft Access VBA Modules 3 19th Apr 2004 08:30 AM
Help! Need custom error message and rid of Access's message =?Utf-8?B?VGFtbXkgQi4=?= Microsoft Access 3 20th Dec 2003 09:27 AM
outlook web access error message - message body is too large... Jason Gallas Microsoft Outlook 0 14th Jul 2003 04:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:54 AM.