473,734 Members | 2,764 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

No email sent? Server.CreateOb ject("CDONTS.Ne wMail")

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="#FFFFF F">

<form method="POST" action="sendmai l.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="VBSCR IPT" %>
<% Option Explicit %>

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

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

Set objMail = Server.CreateOb ject("CDONTS.Ne wMail")

objMail.From = "em***@domain.c om"
objMail.To = "em***@domain.c om"
objMail.Subject = "TEST cdonts"
objMail.Body = "TEST body"

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

Oct 26 '06 #1
1 3004
VK

summer wrote:
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.publ ic.inetserver.a sp.general>

Oct 26 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3637
by: David | last post by:
My email application was working a couple of weeks ago, then all of a sudden I get Error Type: (0x8009000F) Object already exists. I checked the permissions on the machinekeys directory like the KB article said it still doesn't work. Does have any ideas?
0
1629
by: haode | last post by:
to some mail accounts, I can't send mails to them? Whoes fault is this? the part of code is as follows. <% set mail=server.CreateObject("cdonts.newmail") mail.To=aaa@aaa.com mail.From="system@aaa.com" mail.Subject=today & " New Messages"
1
18566
by: CK | last post by:
Hi All, I have this problem when try to send a mail by Using CDO.Message. I got the info from the web, said it may the problem where, the IIS SMTP setup incorrectly. My question is How i can know my SMTP was setup correctly? And how to test it? I did see all the "mailroot" folder did appear in my "inetpub" folder. And Inside the "mailroot" folder do have all the subfolders ( which is badmail, drop and etc..). Please help. Thanks.
3
3590
by: Andyza | last post by:
My prod box consists of the following: - Windows 2003 Server - Exchange 2003 If I use cdoConfig to send emails from my .asp application do I need to include the following typelib on my .asp page if I'm running Exchange 2003: <!--METADATA TYPE="typelib" UUID="CD000000-8B95-11D1-82DB-00C04FB1625D" NAME="CDO for Windows 2000 Library" -->
3
9256
by: Jens | last post by:
Hi I am writing a ASP.NET web application that must sent some e-mails. I get the exception “Could not access 'CDO.Message' object” when I call SmtpMail.Send. This only happens when I send e-mail addresses out side my company walls. When the e-mail is send on some one in my company it works perfect. I think it is a relay issue. Our system administrator will not allow relaying. In the ASP.Net web.config file I let the web application...
1
2450
by: Jason | last post by:
I am trying to send mail via SMTP, using VB.NET on XP. I keep getting this error: "Could not access 'CDO.Message' object." (I can send mail fine via VB6, using CDONTS.) I have added a reference to System.Web, and this is my code: Try WebMailMessage.From = Sender
5
27700
by: MichaelK | last post by:
What do I need to do to enable CDONTS om my macine to make it working I'm testing the code: Dim objCDO Set objCDO = Server.CreateObject("CDONTS.NewMail") objCDO.To = "xyz@xxxxx.com" objCDO.From = "zyx@zzzzz.com" objCDO.Subject = "TESST CDONTS MAIL" objCDO.Body = "SOME TEXT TO SEND OVER"
0
1987
Yoosha
by: Yoosha | last post by:
Hi, I have this error to send App. information & Err. inforamtion with ErrorReport.dll(Private App.). IIS 5.0 VB 6.0 Error: Unable to deliver this message because the follow error was encountered: "Error is processing file in pickup directory.". The specific error code was 0xC00402CE.
3
4188
simpleton
by: simpleton | last post by:
Hey all, I'm new to this board. I'm trying to send email via a "contact us" form .asp page. I've setup SMTP Virtual Server on my local XP IIS 5.1 machine. I told it to relay with 127.0.0.1 The asp page acts like it works, but no email comes through. I initially set the page up with CDONTS (as the tutorial explained): http://www.webthang.co.uk/Tuts/tuts_dmx/dmxf_5/dmx5_3.asp
0
8946
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
8776
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9310
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9236
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9182
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6735
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6031
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3261
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2180
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.