Wrox Programmer Forums
|
Classic ASP Components Discussions specific to components in ASP 3.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Components 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 February 18th, 2004, 09:22 PM
Authorized User
 
Join Date: Feb 2004
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Default Email Error

Hi,

I am using IIS that comes with XP professional , I am using follwing code to send the email. I think code looks right but I get this error

Error Type:
Server object, ASP 0177 (0x800401F3)
Invalid class string
/ambdex/email.asp, line 7

***********

<%

Set myMail = Server.CreateObject("CDONTS.NewMail")

myMail.To = "[email protected]"
myMail.Body = "Hey Bill, how come you're using yahoo mail service?"
myMail.From = "[email protected]"
myMail.Subject = "Testing"

myMail.BodyFormat=0
myMail.Send
Set myMail=nothing
Response.Write "Email has been sent from email1"

%>

Can anyone tell me what i am doing wrong
 
Old February 19th, 2004, 03:23 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Well, for starters you're doing two things wrong.
A) You're posting in the wrong forum. This forum is for feedback about this site, not for technical problems and
B) You're not telling us what line 7 is ;)

If I were you, I'd post the full code, and provide some more details, including the line of code that created the error. I'd also check that your local SMTP Service is running.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old February 19th, 2004, 08:55 AM
Authorized User
 
Join Date: Feb 2004
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry I don't know how I put the question in the wrong forum. Anyhow I found it that CDONTS class is not part of IIS that comes with XP professional, thats why I was geting the error.....

 
Old February 19th, 2004, 05:45 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

CDONTS is part of IIS 5.0 and 6.0. Your OS type is not what yuou should be looking at, the version of IIS is what you need to go by. Check SMTP is enabled inside IIS
        set myMail = server.createObject("CDONTS.Newmail")
        myMail.From = "[email protected]"
        myMail.To = "[email protected]"
        myMail.Subject = "subject"
        myMail.importance = 2
        myMail.BodyFormat = 0
        myMail.body = mssge
        myMail.send

Regards,
Matthew Burr

&nbsp;

__________________________________________

&nbsp;

The Frame Group Pty Limited

Level 11,189 Kent Street, GPO Box 4647, Sydney NSW 2001

&nbsp;

Dir&nbsp;&nbsp;+61 (0) 2 9323 2839&nbsp;&nbsp;&nbsp;Mob&nbsp;&nbsp;+61 (0) 04 0533 9829

Tel&nbsp;&nbsp;+61 (0) 2 9323 2800&nbsp;&nbsp;&nbsp;Fax&nbsp;&nbsp;+61 (0) 2 9323 2828&nbsp;&nbsp;

&nbsp;

ABN 48 095 369403&nbsp;&nbsp;&nbsp;ACN 095 369403



www.framegroup.com.au
 
Old April 15th, 2004, 09:35 PM
Registered User
 
Join Date: Apr 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

try this code instead.......

<html>
<body>
<%
dim a
set a=server.createobject("CDONTS.NewMail")
with a
.to=request.form("to")
.from=request.form("from")
.body=request.form("body")
.send
end with
set a=nothing

if err.number>0 then
    response.write "Error Occured"
else
    response.write "Message Sent Successfully"
end if
%>
</body>
</html>

then do check if your smtp server is installed properly ..........

if the code work then do inform me at [email protected]........
Good Luck
Ahyauddin Khan

 
Old April 21st, 2004, 11:25 AM
Authorized User
 
Join Date: Apr 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to ³Â×÷
Default

¿ÉÄÜÄãµÄ·þÎñÆ÷ÓÐÎÊÌâ°É£¡

 
Old April 22nd, 2004, 06:56 AM
Registered User
 
Join Date: Apr 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Your SMTP Service Install? Start?

a Boy.
 
Old April 22nd, 2004, 11:24 AM
Authorized User
 
Join Date: Apr 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to ³Â×÷
Default

ÎÒͬÒâ"Lilo
"µÄ¿´·¨£¡






Similar Threads
Thread Thread Starter Forum Replies Last Post
Email error message Carthalion BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 5 June 2nd, 2008 03:23 PM
send email error phuc2583 Classic ASP Basics 1 December 16th, 2007 11:22 PM
CDO Email error Treefarn Classic ASP Professional 10 February 20th, 2007 02:39 PM
Error sending email ohChuck C# 1 April 20th, 2006 01:58 AM
Error in email delivery! DiegoH BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 0 March 7th, 2005 04:52 PM





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