Solved

Send Mail Through Exchange Server - ASP Classic

Posted on 2007-11-21
4
1,751 Views
Last Modified: 2012-06-27
Hello,

I'm trying to send mail through an Exchange server with ASP Classic.
I'm using the following method: http://p2p.wrox.com/topic.asp?TOPIC_ID=45261

I have a server which run IIS 6 With SMTP Virtual Server Enabled.

When I try to send the mail, It arrives to C:\Inetpub\Mailroot\queue over my server.

But it stucks over there and does not continue to the exchange server and from there to the user mailbox.

These are the changes I've made to the above code:

.Item(cdoSMTPServer) = "ExchangeServer.."  (setting my exchange server)
.Item(cdoSMTPAuthenticate) = 1
.Item(cdoSendUserName) = "UserName"
.Item(cdoSendPassword) = "Password"

Could someone show how it's correctly done?

Thanks.



0
Comment
Question by:Elite_Bigfoot
4 Comments
 
LVL 25

Accepted Solution

by:
Lee Savidge earned 250 total points
ID: 20330632
Hi,

I have successfully used this sort of setup in the past and I still use it on some servers now...

http://www.petri.co.il/configure_iis_to_be_a_smart_host_for_exchange.htm

Essentially you create an SMTP server on the web server and point that to the exchange using the smarthost settings. Works perfectly.

Regards,

Lee
0
 
LVL 27

Assisted Solution

by:Dan McFadden
Dan McFadden earned 250 total points
ID: 20334830
First off, if you are using CDO.SYS and setting it up for sending email remotely... using the CDO.Configuartion object... you do not need a local instance of SMTP running on your web server.  I would recommend stopping and removing the SMTP Service.

As a best practice, you should only run those services that are absolutely necessary on a web server.  This creates a safer environment on the web server and makes problems easier to troubleshoot.

I would then check your exchange server and verifiy that it allows SMTP relaying.  You may have to configure the exchange to allow relaying from the web server...  Then verify that SMTP authentication is required to relay.  

Depending on where this web server resides (inside your network or out on a DMZ) and who accesses the server (internal people only or the server is available to the public on the internet) you can allow anonymous relay.  If the server is behind a firewall with no external access, adding the web server's address to the relay config in exchange and allowing anonymous relay is safe.  If this is a internal application, I would lock down the exchange smtp relay to on those servers necessary and require SMTP authentication to relay.
0
 
LVL 1

Expert Comment

by:Computer101
ID: 21135896
Forced accept.

Computer101
EE Admin
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Find out what you should include to make the best professional email signature for your organization.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In this video we show how to create a mailbox database in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Servers >> Data…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question