Wrox Programmer Forums
|
ASP CDO As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP CDO 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 March 14th, 2004, 03:15 PM
Authorized User
 
Join Date: Aug 2003
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default error using CDONTS

hello ,
I am trying to send email from my website.
I am using CDONT component but I am getting HTTP 500 - Internal server error

here's my code :

<%
Set MyCDONTSMail = Server.CreateObject("CDONTS.NewMail")
    MyCDONTSMail.From="[email protected]"
    MyCDONTSMail.To= [email protected]
    MyCDONTSMail.Subject="test email"
    MyCDONTSMail.Body= "It's good to send you an email, moushumi!"
    MyCDONTSMail.Send
    set MyCDONTSMail=nothing
%>

plz help.

thanks in advance

moushumi

 
Old March 14th, 2004, 03:27 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

I think you should disable Friendly http error messages on the Advanced tab of the Internet Explorer dialog. Once you do that, and rerun the page, you'll get clearer error information.

If you rerun the page, you'll probably see that this is not going to work:

MyCDONTSMail.To= [email protected]

You'll need to enclose the e-mail address in quotes, just as you did with the other address.

HtH,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old March 14th, 2004, 10:11 PM
Authorized User
 
Join Date: Aug 2003
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Sir,

Its working!!!!






Similar Threads
Thread Thread Starter Forum Replies Last Post
using CDONTS maunishq ASP.NET 1.0 and 1.1 Basics 1 August 23rd, 2007 09:35 AM
cdonts p2ptolu Classic ASP Databases 1 March 8th, 2005 11:48 AM
CDONTS mikedeepak Classic ASP Components 3 August 26th, 2004 06:52 PM
CDONTS preeti Wrox Book Feedback 1 August 11th, 2004 09:39 AM





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