473,714 Members | 3,153 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CDONTS to send order form to emails.

CK
Hi all,
I know this question is stupid. But i need some advice for this. I
am trying to develop a website, which will allow the user send to order form
to the admin email. I am planning to use the CDONTS component method.
Can I just to localhost server to test, whether the form can be send
up to the admin's email. Or I must have the Hosting server to do that. Can
Anyone suggest me, how to I test my scripts can be successfully run (at
localhost), before I host it on the Web Servers.

Regards,
C.K.
Jul 21 '05 #1
4 4332
"CK" <ci****@yahoo.c om> wrote in message
news:u5******** ******@TK2MSFTN GP15.phx.gbl...
Hi all,
I know this question is stupid. But i need some advice for this. I
am trying to develop a website, which will allow the user send to order
form
to the admin email. I am planning to use the CDONTS component method.
Please don't use CDO (cdosys.dll) which is default while CDONTS is
obsoleted.
Can I just to localhost server to test, whether the form can be
send
up to the admin's email. Or I must have the Hosting server to do that. Can
you'll need a local SMPT server or you configure CDO to use a remote server.
Anyone suggest me, how to I test my scripts can be successfully run (at
localhost), before I host it on the Web Servers.

Regards,
C.K.


Jul 21 '05 #2
CK
Hi Egbert Nierop,
Thanks for your information. Can you do me one
more favour. Do you have any information about to setup and configure the
SMTP? I am a newbie to asp. Thanks for your help.

Regards,
C.K.

"Egbert Nierop (MVP for IIS)" <eg***********@ nospam.invalid> wrote in
message news:en******** ******@TK2MSFTN GP11.phx.gbl...
"CK" <ci****@yahoo.c om> wrote in message
news:u5******** ******@TK2MSFTN GP15.phx.gbl...
Hi all,
I know this question is stupid. But i need some advice for this. I am trying to develop a website, which will allow the user send to order
form
to the admin email. I am planning to use the CDONTS component method.
Please don't use CDO (cdosys.dll) which is default while CDONTS is
obsoleted.
Can I just to localhost server to test, whether the form can be
send
up to the admin's email. Or I must have the Hosting server to do that.

Can
you'll need a local SMPT server or you configure CDO to use a remote server.
Anyone suggest me, how to I test my scripts can be successfully run (at
localhost), before I host it on the Web Servers.

Regards,
C.K.

Jul 21 '05 #3
"Egbert Nierop (MVP for IIS)" <eg***********@ nospam.invalid> wrote in
message news:en******** ******@TK2MSFTN GP11.phx.gbl...
"CK" <ci****@yahoo.c om> wrote in message
news:u5******** ******@TK2MSFTN GP15.phx.gbl...
Hi all,
I know this question is stupid. But i need some advice for this.
I
am trying to develop a website, which will allow the user send to order
form
to the admin email. I am planning to use the CDONTS component method.


Please don't use CDO (cdosys.dll) which is default while CDONTS is
obsoleted.


Sorry, typo!

Please don't use CDONTS, use CDO(cdosys.dll) which is default on win2k and
better while CDONTS is
obsoleted.
see for good samples http://www.aspfaq.com

Jul 21 '05 #4
"CK" <ci****@yahoo.c om> wrote in message
news:Ol******** ******@TK2MSFTN GP11.phx.gbl...
Hi Egbert Nierop,
Thanks for your information. Can you do me one
more favour. Do you have any information about to setup and configure the
SMTP? I am a newbie to asp. Thanks for your help.


Just use the defaults and be sure that your SMTP server can access any valid
DNS server.

It's not that difficult :)
http://support.microsoft.com/?id=816121

Knowledge Base

HOW TO: Set Up and Configure an SMTP Virtual Server in Windows Server
2003PSS ID Number: 816121
Article Last Modified on 3/1/2004
The information in this article applies to:
Microsoft Windows Server 2003, Datacenter Edition
Microsoft Windows Server 2003, Enterprise Edition
Microsoft Windows Server 2003, Standard Edition
Microsoft Windows Small Business Server 2003, Standard Edition
Microsoft Windows Small Business Server 2003, Premium Edition

For a Microsoft Windows 2000 version of this article, see 308161.
IN THIS TASK
SUMMARY

Install Microsoft Internet Information Services (IIS) and Microsoft SMTP
Service
Configure the SMTP Virtual Server
Assign an IP Address
Configure the Default Domain
Enable Transaction Logging
Set Relay Restrictions
Set Up a Smart Host
Troubleshoot
REFERENCES
SUMMARY
This step-by-step article describes how to set up a Simple Mail Transfer
Protocol (SMTP) virtual server on a Windows Server 2003-based computer.

Microsoft SMTP Service uses the Internet-standard SMTP to transport and
deliver mail messages. Microsoft SMTP Service does not support the use of
individual mailboxes. The service places incoming messages in a Drop folder
or forwards them to other SMTP servers (if the message is addressed to a
remote domain). This feature allows Microsoft SMTP Service to be used as a
mail receiver for other programs.

back to the top
Install Microsoft Internet Information Services (IIS) and Microsoft SMTP
Service
Because Microsoft SMTP Service is a component of Microsoft Internet
Information Services (IIS), you must install IIS to use Microsoft SMTP
Service. To install IIS and Microsoft SMTP service, follow these steps:
Click Start, point to Control Panel, and then click Add or Remove Programs.
Click Add/Remove Windows Components.
In the Windows Components Wizard, click Internet Information Services (IIS),
and then click Details.
Click to select the following check boxes:
Common Files
Internet Services Manager (HTML)
SMTP Service
World Wide Web Server
Click to select any other components that you want.
Click OK two times, click Next, and then click Finish to close the Windows
Components Wizard.
back to the top
Configure the SMTP Virtual Server
When you install Microsoft SMTP Service, a default SMTP virtual server is
created to handle basic mail delivery functions. The SMTP virtual server is
automatically configured with default settings that enable it to accept
local client computer connections and to process messages. You can either
accept the default settings or change the SMTP virtual server configuration.
You can configure the SMTP virtual server to meet your messaging
requirements. This article describes basic configuration and security
settings that you may want to consider using.

back to the top
Assign an IP Address
To assign an IP address to your SMTP virtual server, follow these steps:
Click Start, point to All Programs, point to Administrative Tools, and then
click Internet Information Services (IIS) Manager.
Right-click Default SMTP Virtual Server, and then click Properties.
Click the General tab.
If you want the SMTP virtual server to respond to connection requests for
all IP addresses that are configured on the computer, click to select (All
Unassigned) in the IP address box. (This is the default setting.)
If you want to assign a specific IP address to the SMTP virtual server,
click the IP address that you want to use in the IP address box.
If you want to assign additional IP addresses to the virtual server, click
Advanced, click Add, specify the IP address and the Transmission Control
Protocol (TCP) port number, and then click OK three times.

Note The default TCP port is 25.
Click OK.
back to the top
Configure the Default Domain
SMTP virtual servers must have one local default domain. The default domain
is used to stamp messages from addresses that do not contain a domain. By
default, the name that you specify on the Network Identification tab of the
System tool in Control Panel is used as the default domain name.

All incoming mail messages that are designated for the default domain are
placed in the Drop folder. By default, the Drop folder is located in the
Inetpub\Mailroo t folder.

To change the location of the Drop folder, follow these steps:
Click Start, point to All Programs, point to Administrative Tools, and then
click Internet Information Services (IIS) Manager.
Double-click Default SMTP Virtual Server, and then click Domains.
In the right pane, right-click the default domain, and then click
Properties.
Click Browse, locate and select a folder that you want to use for your Drop
folder, and then click OK two times.

Note You must put the Drop folder in a folder on the local computer where
Microsoft SMTP Service is installed.
back to the top
Enable Transaction Logging
Log files keep a record of all the messages that are received and sent on
your computer. To turn on logging, follow these steps:
Click Start, point to All Programs, point to Administrative Tools, and then
click Internet Information Services (IIS) Manager.
Right-click Default SMTP Virtual Server, and then click Properties.
Click the General tab, and then click to select the Enable logging check
box.
In the Active log format box, click the log format that you want to record
information in. The default log format is W3C Extended Log File Format.
Click Properties.
Specify the settings that you want to use. You can specify settings to
include the logging time period and the location and name of the log file.
Click OK two times.
back to the top
Set Relay Restrictions
By default, all computers are denied relay access. Microsoft SMTP Service
does not allow computers to relay unwanted mail through the virtual server.
All computers are denied relay access except those that meet the
authentication requirements that are specified in the Authentication box on
the Access tab. If your virtual server is on the Internet, Microsoft
recommends that you do not grant relay access. If you do, unsolicited mail
may be propagated. To grant or deny permissions to relay messages through
the SMTP virtual server, follow these steps:
Click Start, point to All Programs, point to Administrative Tools, and then
click Internet Information Services (IIS) Manager.
Right-click Default SMTP Virtual Server, and then click Properties.
Click the Access tab.
Under Relay restrictions, click Relay, and then do one of the following:
Click Only the list below.
Click All except the list below.
Click Add.
Click the settings that you want to use, add the computers, the group of
computers, or the domain that you want to specify as exceptions to the
access setting that you selected in step 4, and then click OK three times.
back to the top
Set Up a Smart Host
If you want to designate another SMTP server to handle all outgoing
messages, you can set up a smart host to perform this task. After you set up
the smart host, all outgoing messages that are designated for remote domains
are routed through it. To configure a smart host, follow these steps:
Click Start, point to All Programs, point to Administrative Tools, and then
click Internet Information Services (IIS) Manager.
Right-click Default SMTP Virtual Server, and then click Properties.
Click the Delivery tab, and then click Advanced.
In the Smart host box, type either the fully qualified domain name (FQDN) or
the IP address of the smart host server.

If you type an IP address, enclose the address in brackets (for example,
[192.168.188.228]). This may improve performance because Microsoft SMTP
Service does not perform name resolution.
If you want Microsoft SMTP Service to try to deliver the remote messages
directly before it forwards them to the smart host, click to select the Try
to direct delivery before sending to smart host check box. (By default, this
check box is not selected.)
Click OK two times.
back to the top
Troubleshoot
Issue: Messages are not sent to the Drop folder. This issue may occur
because of either of the following conditions:
The path of the Drop folder is incorrect.

To troubleshoot this issue, follow these steps:
Click Start, point to All Programs, point to Administrative Tools, and then
click Internet Information Services (IIS) Manager.
Double-click Default SMTP Virtual Server, and then click Domains.
In the right pane, right-click the default domain, and then click
Properties.
In the Drop directory box, verify that the path of the Drop folder is valid.
Either the Drop folder or the hard disk where the Drop folder is located is
full.

To troubleshoot this issue, free hard disk space in either the Drop folder
or on the hard disk where the Drop folder is located. For additional
information about how to troubleshoot Microsoft SMTP Service, click the
following article number to view the article in the Microsoft Knowledge
Base:
323358 HOW TO: Troubleshoot a Web Server in Windows Server 2003
For additional information about how to test Microsoft SMTP Service, click
the following article numbers to view the articles in the Microsoft
Knowledge Base:
323350 HOW TO: Test SMTP Services Manually in Windows Server 2003
back to the top
REFERENCES
For additional information about how to set SMTP security options, click the
following article numbers to view the articles in the Microsoft Knowledge
Base:
324285 HOW TO: Set SMTP Security Options in Windows Server 2003
back to the top
Keywords: kbHOWTOmaster kbinfo KB816121
Technology: kbSBServ2003Pre kbSBServ2003Sea rch kbSBServ2003St kbSBServSearch
kbWinServ2003Da ta kbWinServ2003Da taSearch kbWinServ2003En t
kbWinServ2003En tSearch kbWinServ2003Se arch kbWinServ2003St


Send feedback to Microsoft
© 2004 Microsoft Corporation. All rights reserved.

Jul 21 '05 #5

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

Similar topics

29
3539
by: | last post by:
I did a working code with CDONTS on NT4 Now I am testing is on w2k and it looks like objCDONTS.Send is completely ignored. I think is it ignored because it throws no errors, neither does the rest of the code setting objCDONTS=Server.CreateObject("CDONTS.NewMail") and then manipulating its properties. Do I need to somehow set IIS5 to make objCDONTS.Send work?
1
3387
by: mike bayliss | last post by:
HI below is my asp form that collects fields from a web page encoded in windows-1251. I have a pretty smooth brain and cannot figure out how to get this script to send readable emails to the moscow address in windows-1251. Can anyone show me what the script should look like < ToEmail="arussian@moscow.ru CCEmail="me@theoffice.co.uk FromEmail=Request.Form("email_address" Subject="Moscow Request in russian
0
1339
by: Saya | last post by:
Hi all, I am trying to solve the follwoing issue. I need to send emails writte in Chinese, and in HTML format. I have the HTML format at Chinese characters in the body working, using the SetLocalID on the CDONTs object. But if something in Chinese is written in the value for the subject
8
3951
by: Boris | last post by:
Could someone please tell me if I can use CDONTS in W 2003 Server environment to send emails the same way it is used in W2K Server. I have heard that CDONTS is no longer available in W 2003 Server and if so, how can I send emails from ASP page... Many thanks in advance
5
2634
by: BaWork | last post by:
I have a web form where a client can select which site members to send an email to. This form is populated from the contents of the member table, so the form can have 0-x names listed on it depending on member expiration dates. When the form is submitted, the code loops through the form contents and sends an email to those members that meet the selected criteria. All this worked perfectly when I was sending text emails, but since I
6
11184
by: DigitalRick | last post by:
I have been running CDONTS in my ASPpages to send emails to me sent from my guestbook. It had been working fine untill I upgraded to Server 2003 (I am also running Exchange 2003) all locally. I will include the code I originally used. I understand I should switch from CDONTS to CDO mail but after several sttempts I am finding a very hard time getting the new CDO mail to work properly. Any assistance with this would be greatly...
12
6299
by: Jeff | last post by:
I have a dedicated windows server on BlueGenesis. I'd like to send an email using ASP, but I'm getting this error message: Microsoft VBScript runtime error '800a01ad' ActiveX component can't create object: 'CDONTS.NewMail' I'm told that is because CDONTS is not installed.
4
2066
by: Dr. Harvey Waxman | last post by:
I guess I should change from cdonts to cdosys. Since I am ignorant about asp I hope you forgive this basic question. There are two asp files for handling mail, the one that gets the info from a form and creates a form.asp to mail and the one that takes that file and mails it, mail.asp. I believe I can figure out what needs to be altered in the code for the first form.asp but what needs to be changed in the one that sends the email? Is...
3
3975
by: Hugo Lefebvre | last post by:
Is there a maximum number of emails CDONTS can handle in an asp script? I have different questions about this. Question1: example1: set objSendMail = createobject("CDONTS.NewMail") ...... objSendMail.To = emailto
0
8810
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, weíll explore What is ONU, What Is Router, ONU & Routerís main usage, and What is the difference between ONU and Router. Letís take a closer look ! Part I. Meaning of...
0
8712
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
9182
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...
0
9026
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...
0
5959
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();...
0
4466
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3160
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
2
2526
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2113
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.