No email sent? Server.CreateObject("CDONTS.NewMail")

S

summer

Hello,
I'm not receiving my email, I believe I'm almost there, but can't
figure out what I'm missing. Any Clue would be appreciated.

Here's my html and asp code. I've included the cdovbs.inc file in the
root of my website, I thought that maybe my error.

Thank you,
Summer

HTML CODE: SENDMAIL.HTM

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Send Mail</title>
</head>

<body bgcolor="#FFFFFF">

<form method="POST" action="sendmail.asp">
<h3 align="center">CDONTS Send Email Simple Form Example</h3>
<p>To: <input type="text" size="30" name="To"></p>
<p>From: <input type="text" size="30" name="From"></p>
<p>Subject: <input type="text" size="30" name="Sub"></p>
<p>Message Text:<br>
<textarea name="Message" rows="10" cols="80"></textarea></p>
<p align="center"><input type="submit" name="Send"
value="Submit"><input type="reset" name="Cancel"
value="Reset"></p>
</form>
</body>
</html>


CODE: SENDMAIL.ASP
<%@ LANGUAGE="VBSCRIPT" %>
<% Option Explicit %>

<!--#include virtual="cdovbs.inc"-->
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">

<%
Dim objMail, strFrom, strTo, strSubject, strBody
'strTo = Trim(Request.Form("To"))
'strSubject = Trim(Request.Form("Sub"))
'strFrom = Trim(Request.Form("From"))
'strBody = Trim(Request.Form("Message"))

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

objMail.From = "(e-mail address removed)"
objMail.To = "(e-mail address removed)"
objMail.Subject = "TEST cdonts"
objMail.Body = "TEST body"

objMail.Send()
Set objMail = Nothing
%>
<html>
<body>
Email sent
</body>
</html>
 
V

VK

summer said:
Here's my html and asp code. I've included the cdovbs.inc file in the
root of my website, I thought that maybe my error.
<snip>

Sorry, wrong group.

Try <microsoft.public.inetserver.asp.general>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top