Wrox Programmer Forums
|
BOOK: ASP.NET Website Programming Problem-Design-Solution
This is the forum to discuss the Wrox book ASP.NET Website Programming: Problem - Design - Solution, Visual Basic .NET Edition by Marco Bellinaso, Kevin Hoffman; ISBN: 9780764543869
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: ASP.NET Website Programming Problem-Design-Solution section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 23rd, 2003, 10:36 AM
Registered User
 
Join Date: Sep 2003
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default 'CDO.Message' Object Couldn't be Accessed!

Following is the error I am getting when I try to send a newsletter email to a subscriber.

The error occurred in: http://localhost/ThePhile/Modules/Li...aspx?ListID=17
Error Message: Could not access 'CDO.Message' object.

Stack Trace:
System.Web.HttpException: Could not access 'CDO.Message' object. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x80040220): The "SendUsing" configuration value is invalid. --- End of inner exception stack trace --- at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters) at System.RuntimeType.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters) at System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String methodName, Object[] args) --- End of inner exception stack trace --- at System.Web.Mail.LateBoundAccessHelper.CallMethod(O bject obj, String methodName, Object[] args) at System.Web.Mail.CdoSysHelper.Send(MailMessage message) at System.Web.Mail.SmtpMail.Send(MailMessage message) at Wrox.WebModules.MailingLists.Business.Newsletter.S end(Int32 newsletterListID, String newsletterSubject, String newsletterBody, Boolean newsletterIsHTML, MailPriority priority, Boolean saveToDB, Int32& totalNewsletters) at Wrox.WebModules.MailingLists.Business.List.SendNew sletter(String subject, String body, Boolean isHTML, MailPriority priority, Boolean saveToDB, Int32& totalNewsletters) at Wrox.WebModules.MailingLists.Web.SendNewsletter.Se nd_Click(Object sender, EventArgs e) in C:\wrox\ThePhile\Modules\Lists\Admin\SendNewslette r.aspx.cs:line 101 at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.System.Web.UI.IPo stBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEve ntHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCol lection postData) at System.Web.UI.Page.ProcessRequestMain()
 
Old September 23rd, 2003, 09:21 PM
Authorized User
 
Join Date: Jun 2003
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The subscribe and unsubcribe methods are set to the default smtp settings.

Just change the static property to reflect your SMTP server.

For example:

This is what I use for testing. I'm using my static ISP's smtp server.

Smtp.mail.smtpserver = smtp.cox.west.net
smtp.send(mailMsg)

Note: There are a few places you must make the changes. The MailingList.Business classes (Newsletter.vb and Subcription.vb)

I made these changes about 9 months ago.

Tip: I placed all of my global setting in the web.config

<add key="smtpserver" value="cox.smtp.west.net" />
<add key="siteadmin" value="drfunkie@yahoo.com" />
 
Old December 7th, 2005, 11:27 AM
Registered User
 
Join Date: Dec 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I found the simplest way to solve this problem - smtp.com. They are the oldest company, their service cost not much, they have professianal support staff. Since I've subscribed with them I haven't experienced any problems with sending email or they were resolved fast. I recommend you http://smtp.com






Similar Threads
Thread Thread Starter Forum Replies Last Post
Could not access 'CDO.Message' object - ASP.net neeta_gt General .NET 8 December 3rd, 2008 04:41 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.