Why..oh why can't I send mail from an asp page? (Full Version)

All Forums >> [Web Development] >> Server Issues



Message


jeffmetcalf -> Why..oh why can't I send mail from an asp page? (6/21/2002 11:42:30)

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?

Help is greatly appreciated...

"Everyone has a photographic memory. Some of us just don't have film"




rdouglass -> RE: Why..oh why can' t I send mail from an asp page? (6/28/2002 10:13:04)

Post been here a little while...are you still here?[:)]

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 = " me@mydomain.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.




clum1 -> RE: Why..oh why can' t I send mail from an asp page? (6/29/2002 5:00:08)

see here for help

clum1





jeffmetcalf -> RE: Why..oh why can' t I send mail from an asp page? (7/1/2002 14:43:23)

Just get an error.

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

Thanks




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.125