navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Can' t send mail from asp page using CDONT, htm pages mail fine.

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Server Issues >> Can' t send mail from asp page using CDONT, htm pages mail fine.
Page: [1]
 
jeffmetcalf

 

Posts: 186
Joined: 3/16/2002
From:
Status: offline

 
Can' t send mail from asp page using CDONT, htm pages m... - 7/3/2002 15:44:14   

Have CDONTS as mail (according to Spooky). Have a pretty simple form that collects some variables based on selections from a db region. Want the users to add their name etc to the collection, and mail it. Page never gets sent, and confirm page never shows. Smtp server is setup to correct mail server (MS Exchange) via FP server ext 2002 on server. Should this say smtp.domain_name.com instead of server_name.domain_name.com?

so I got this message from rdouglass (thankee)



What happens when you try to send a simple CDONTS message? Make a very simple ASP page with just this code on it, replace with your email addresses, and check for a message:

<html> <head> <title>CDONTS Test</title>
</head>
<body>
<% Dim myMail
Set myMail = CreateObject(" CDONTS.NewMail" )
myMail.BodyFormat = 1
myMail.MailFormat = 1
myMail.From = " billg@microsoft.com"
myMail.To = " jmetcalf@computer-plus.com"
myMail.Subject = " Email Test"
myMail.Body = " Here is your test message."
myMail.Send
Set myMail = Nothing
Response.Write(" OK" )
%>
</body>
</html>


Run the page. You should get a page with " OK" on it as well as an email message. If that works, we' ll go from there. If that doesn' t work, you probably have a problem with CDONTS configs.




and this is what I get....

The page cannot be displayed
There is a problem with the page you are trying to reach and it cannot be displayed.



Please try the following:

Open the www.computer-plus.com home page, and then look for links to the information you want.
Click the Refresh button, or try again later.

Click Search to look for information on the Internet.
You can also see a list of related sites.




HTTP 500 - Internal server error
Internet Explorer


Mail sends fine from an htm/html page.

http://www.computer-plus.com/mktnet/mailtest.asp
is the page. Can find no clues on the server or logs.

Thanks


clum1

 

Posts: 762
From: Glasgow, Scotland
Status: offline

 
RE: Can' t send mail from asp page using CDONT, htm pag... - 7/5/2002 4:49:57   
do other .asp pages work ok?

rename a page from *.htm to *.asp and ensure it still displays.

clum1

(in reply to jeffmetcalf)
jeffmetcalf

 

Posts: 186
Joined: 3/16/2002
From:
Status: offline

 
RE: Can' t send mail from asp page using CDONT, htm pag... - 7/5/2002 9:16:38   
Yep, they work fine.

(in reply to jeffmetcalf)
clum1

 

Posts: 762
From: Glasgow, Scotland
Status: offline

 
RE: RE: Can' t send mail from asp page using CDONT, htm... - 7/5/2002 9:21:16   
that' s good - at least it' s not something simple!!

i had a similar problem with my intranet application - here' s how i solved it.

does this help?

clum1

(in reply to jeffmetcalf)
jeffmetcalf

 

Posts: 186
Joined: 3/16/2002
From:
Status: offline

 
RE: Can' t send mail from asp page using CDONT, htm pag... - 7/5/2002 10:04:41   
Well, I' ve seen that message. But can find no area for a ' Smart host' . I am running exchange 2000 sp2, and the server is running FP 2002 extensions. Where are these settings?

Many thanks

(in reply to jeffmetcalf)
clum1

 

Posts: 762
From: Glasgow, Scotland
Status: offline

 
RE: RE: Can' t send mail from asp page using CDONT, htm... - 7/5/2002 10:18:58   
Not too sure about Exchange 2000, but the settings will be similar to 5.5:

Open the Management Console for IIS on your server. In the left-hand pane, right-click on Default SMTP Site.

Select Properties then Delivery on the tab dialogue.

In the Fully Qualified Domain Name box, enter the IP address of your Exchange Server enclosed within Square Brackets e.g. [192.168.1.2]

In the Smart Host box, enter the name of your Exchange server e.g. Exchange_2

Cross Fingers.

Click OK

Try that test page from RDouglass.

That last bit was what sorted my problems. I hope this works for you cos I now know what a pain it can be... If it doesn' t, you could always try an alternative such as JMail, ASPmail etc.

clum1

(in reply to jeffmetcalf)
jeffmetcalf

 

Posts: 186
Joined: 3/16/2002
From:
Status: offline

 
RE: Can' t send mail from asp page using CDONT, htm pag... - 7/7/2002 9:37:41   
The test page returns ok, and the mail is sent. The page I am working on is

http://www.computer-plus.com/mktnet/register2.asp

many thanks

(in reply to jeffmetcalf)
Page:   [1]

All Forums >> Web Development >> Server Issues >> Can' t send mail from asp page using CDONT, htm pages mail fine.
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts