Solved

Send Mail Through Exchange Server - ASP Classic

Posted on 2007-11-21
4
1,757 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 28

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

How to resolve IMCEAEX NDRs in Exchange or Exchange Online related to invalid X500 addresses.
After hours on line I found a solution which pointed to the inherited Active Directory permissions . You have to give/allow permissions to the "Exchange trusted subsystem" for the user in the Active Directory...
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

726 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