Advertisement

09.20.2008 at 11:20AM PDT, ID: 23748531
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

help with problem: ActiveX component can't create object: 'CDONTS.NewMail'

Asked by EricBourland in Active Server Pages (ASP), Programming for ASP.NET

Tags:

Hi. I have another question regarding ASP. I am trying to configure an ASP application that subscribes people to a LISTSERV mailing list. The URL of the ASP application is here:

http://www.careplanners.net/listserver.asp

When I try to subscribe using the subscribe form on this page, http://www.careplanners.net/listserver.asp, I get this error:

ActiveX component can't create object: 'CDONTS.NewMail'

So, my application is trying to create an object, but cannot do so.

Does anybody have any advice to resolve this problem?

I append the ASP code, below.

Thanks very much for your time.

EricStart Free Trial
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:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
135:
136:
137:
138:
139:
140:
141:
142:
143:
144:
145:
146:
147:
148:
149:
150:
151:
152:
153:
154:
155:
156:
157:
158:
159:
160:
161:
162:
163:
164:
165:
166:
167:
168:
169:
170:
171:
172:
173:
174:
175:
176:
177:
178:
179:
180:
181:
182:
183:
184:
185:
186:
187:
188:
189:
190:
191:
192:
193:
194:
195:
196:
197:
198:
199:
200:
201:
202:
203:
204:
205:
206:
207:
208:
209:
210:
211:
212:
213:
214:
215:
216:
217:
218:
219:
220:
221:
222:
223:
224:
225:
226:
227:
228:
229:
230:
231:
232:
233:
234:
235:
236:
237:
238:
239:
240:
241:
242:
243:
244:
245:
246:
247:
248:
249:
250:
251:
252:
253:
254:
<!-- #include file = "header_inc.asp" -->
<!-- #include file = "menu_inc.asp" -->
<%
 
email_pass = false
if trim(request("email_addy")) <> "" and (cstr(request("verify")) = cstr(session("check_str")) and session("check_str") <> "") then
	email_pass = true
end if
 
if request("submit") <> "" and email_pass = true then
Select Case request("action")
	Case "Subscribe"
  			subject = ""
  			'mailfrom = "sgrisham@careplanners.net"
  			mailfrom = trim(request("email_addy"))
  			mailto = "STServ@careplanners.net"
 
  			email_body = "subscribe lcpforum"
 
    			Set objCDOMail = CreateObject("CDONTS.NewMail")
    			objCDOMail.From = mailfrom
    			objCDOMail.To = mailto
    			objCDOMail.Subject = subject
    			objCDOMail.Body = email_body
    			objCDOMail.MailFormat = 0
    			objCDOMail.BodyFormat = 1    'HTML Format
    			objCDOMail.Send
    			Set objCDOMail = Nothing
			%>
			<script>
			alert("Thank you for subscribing to the LCP Forum.")
			</script>
			<%
 	Case "Subscribe_digest"
  			subject = ""
  			'mailfrom = "sgrisham@careplanners.net"
  			mailfrom = trim(request("email_addy"))
  			mailto = "STServ@careplanners.net"
 
 
  			email_body = "subscribe lcpforum"
 
    			Set objCDOMail = CreateObject("CDONTS.NewMail")
    			objCDOMail.From = mailfrom
    			objCDOMail.To = mailto
    			objCDOMail.Subject = subject
    			objCDOMail.Body = email_body
    			objCDOMail.MailFormat = 0
    			objCDOMail.BodyFormat = 1    'HTML Format
    			objCDOMail.Send
    			Set objCDOMail = Nothing
			%>
			<script>
			alert("Thank you for subscribing to the LCP Forum Digest.")
			</script>
			<%
	Case "Unsubscribe"
  			subject = ""
  			'mailfrom = "sgrisham@careplanners.net"
  			mailfrom = trim(request("email_addy"))
  			mailto = "STServ@careplanners.net"
 
 
  			email_body = "unsubscribe lcpforum"
    			Set objCDOMail = CreateObject("CDONTS.NewMail")
    			objCDOMail.From = mailfrom
    			objCDOMail.To = mailto
    			objCDOMail.Subject = subject
    			objCDOMail.Body = email_body
    			objCDOMail.MailFormat = 0
    			objCDOMail.BodyFormat = 1    'HTML Format
    			objCDOMail.Send
    			Set objCDOMail = Nothing
			%>
			<script>
			alert("Your email has been removed from the LCP Forum.")
			</script>
			<%
	Case "Change_digest"
  			subject = ""
  			'mailfrom = "sgrisham@careplanners.net"
  			mailfrom = trim(request("email_addy"))
  			mailto = "STServ@careplanners.net"
 
 
  			email_body = "set mode digest lcpforum"
    			Set objCDOMail = CreateObject("CDONTS.NewMail")
    			objCDOMail.From = mailfrom
    			objCDOMail.To = mailto
    			objCDOMail.Subject = subject
    			objCDOMail.Body = email_body
    			objCDOMail.MailFormat = 0
    			objCDOMail.BodyFormat = 1    'HTML Format
    			objCDOMail.Send
    			Set objCDOMail = Nothing
			%>
			<script>
			alert("Your subscription to the LCP Forum has been changed from Standard to Digest mode.")
			</script>
			<%
	Case "Change_normal"
  			subject = ""
  			'mailfrom = "sgrisham@careplanners.net"
  			mailfrom = trim(request("email_addy"))
  			mailto = "STServ@careplanners.net"
 
 
  			email_body = "set mode standard lcpforum"
    			Set objCDOMail = CreateObject("CDONTS.NewMail")
    			objCDOMail.From = mailfrom
    			objCDOMail.To = mailto
    			objCDOMail.Subject = subject
    			objCDOMail.Body = email_body
    			objCDOMail.MailFormat = 0
    			objCDOMail.BodyFormat = 1    'HTML Format
    			objCDOMail.Send
    			Set objCDOMail = Nothing
			%>
			<script>
			alert("Your subscription to the LCP Forum has been changed from Digest to Standard mode.")
			</script>
			<%
End Select
 
end if
%>
<div id="content">
<h2> Welcome to the LCP Forum</h2>
<p><strong>The Care Planner Network</strong> is pleased to offer the LCP Forum. We encourage our members to use the Forum to discuss issues impacting the field of life care planning and case management, share resources, and explore challenging case decisions.</p>
<p>To subscribe select the action or method of delivery followed by your email address. You can change your subscription to the Forum at any time.</p>
<p><strong>Method of Delivery Options:</strong></p>
<p>Normal means the posts will be delivered to you via email as they are posted in the Forum. Digest means an email will be sent to you at Midnight, with a history of all items that were posted that day.</p>
<p>Once you have subscribed to the LCP Forum mailing list, you may post to the list by sending an email message to <script type="text/javascript">
/* <![CDATA[ */
function hivelogic_enkoder(){var kode=
"kode=\";)'':)1-htgnel.edok(tArahc.edok?htgnel.edok<i(+x=edok})i(tArahc.edo"+
"k+)1+i(tArahc.edok=+x{)2=+i;)1-htgnel.edok(<i;0=i(rof;''=x;\\\")''n(oi.j()"+
"seerev.r')('itpl.sdekoe=od;kk\\\"\\\\do=e\\\\\\\\\\\"\\\\document.write\\"+
"\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\a(h<e =r\\\\\\\\f\\\"\\\\\\\\\\\\\\\\\\\\\\"+
"\\\\\\\\\\\\\\\\\\\\\\a\\\\\\\\lmoiltp:ocuf@rameclrnpeasnnrt.\\\\\\\\e\\\""+
"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\t\\\\\\\\t ei\\\\\\\\l\\\\\\\\"+
"\\\\\\\\=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"+
"\\\"\\\\\\\\\\\\>\\\"\\\\\\\\\\\\c\\\\\\\\flrpmocur@paaenlrn.ees<nat\\\\\\"+
"\\/\\\"\\\\\\\\\\\\>\\\\\\\\);\\\\\\\\\\\"\\\\x;'=;'of(r=i;0<ik(do.eelgnht"+
"1-;)+i2={)+xk=do.ehcratAi(1++)okedc.ahAr(t)ik}do=e+xi(k<do.eelgnhtk?do.ehc"+
"ratAk(do.eelgnht1-:)'';)=\\\"\\\\deko\\\"=edok\";kode=kode.split('').rever"+
"se().join('')"
;var i,c,x;while(eval(kode));}hivelogic_enkoder();
/* ]]> */
</script>.</p>
<p>See you in the Forum.</p>
 <form name="listadd" method="post" action="listserver.asp">
                                    <label>Choose Action:</label>
									<select name="action">
										<option value="Subscribe">Subscribe</option>
									     <option value="Subscribe_digest">Subscribe to the Digest List</option>
										<!--<option value="Change_digest">Change to the Digest List</option>
										<option value="Change_normal">Change to the Normal List</option>-->
										<option value="Unsubscribe">Unsubscribe</option>
									</select>
 
									<br><br>
                                    <label>Email Address:</label>
									<input type="text" name="email_addy" size="20">
									<br /><br />
									<strong>Please type the numbers displayed in the box.</strong>
									<table border="0" cellspacing="0" cellpadding="0" style="width:320px;">
									<tr><td style="padding-right:0px;padding-left:0px;">
									<%
										session("check_str") = ""
										dim check_array()
										intUpperBound = 9
										intLowerBound = 0
										redim check_array(4)
										for i = 0 to ubound(check_array)
											Randomize()
											intRangeSize = intUpperBound - intLowerBound + 1
											sngRandomValue = intRangeSize * Rnd()
											check_array(i) = Int(sngRandomValue)
										next
										for i = 0 to ubound(check_array)
											select case check_array(i)
												case 1
													img = "dirt.gif"
												case 2
													img = "musky.gif"
												case 3
													img = "fartwad.gif"
												case 4
													img = "crispy.gif"
												case 5
													img = "noogies.gif"
												case 6
													img = "meinleben.gif"
												case 7
													img = "bungie.gif"
												case 8
													img = "fargle.gif"
												case 9
													img = "jingle.gif"
												case else '0
													img = "sparkle.gif"
											end select
											session("check_str") = session("check_str") & check_array(i)
											response.write "<img src=""/images/ver/" & img & """ />"
										next
										%>
										</td><td>
										&nbsp;<input type="text" name="verify" size="20" />
										</td></tr>
										</table>
										<br />
                                    <input type="submit" name="submit" value="Submit" onClick="return check_email();"><br>
                                    </form>
 
 
    <!-- #include file = "footer_inc.asp" -->
<script>
function check_email(){
    if (!isEmail(document.listadd.email_addy.value)){
        alert("Please enter valid Email Address.");
        document.listadd.email_addy.focus();
        return false
	}else{
			if (document.listadd.verify.value==""){
				alert("Please enter verification value")
				document.listadd.verify.focus()
				return false
			}else{
				return true
			}
		}
}
function isEmail(string) {
    if (isEmpty(string)) return false;
    if (string.search(/^(([\w!#-'*+\-\/=?^`{-~]+(\.[\w!#-'*+\-\/=?^`{-~]+)*)|(\".+\"))@((([a-zA-Z0-9]+[a-zA-Z0-9\-]*[a-zA-Z0-9]+\.)+[a-zA-Z]{2,})|(\[[0-9]{1,3}(\.[0-9]{1,3}){3}\]))$/ ) != -1)
        return true;
    else
        return false;
}
function isEmpty(s){
    return ((s == null) || (s.length == 0))
}
</script>
 
<%
	if not email_pass and request("submit") <> "" then
		%>
		<script>
			alert("The Number Code does not match.")
		</script>
		<%
	end if
%>
[+][-]09.20.2008 at 11:24AM PDT, ID: 22530983

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Active Server Pages (ASP), Programming for ASP.NET
Tags: ASP
Sign Up Now!
Solution Provided By: hielo
Participating Experts: 1
Solution Grade: A
 
 
[+][-]09.20.2008 at 11:35AM PDT, ID: 22531015

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.20.2008 at 11:40AM PDT, ID: 22531042

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.21.2008 at 04:46PM PDT, ID: 22536489

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.22.2008 at 07:35PM PDT, ID: 22546041

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.23.2008 at 04:56PM PDT, ID: 22555438

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628