Solved

Send Mail Through Exchange Server - ASP Classic

Posted on 2007-11-21
4
1,756 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

Independent Software Vendors: 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

Suggested Solutions

Title # Comments Views Activity
JSON Error in ASP Page 3 38
CAL for Disabled accounts 4 56
Office 365 list of users and their count of sent items 3 37
Bulk export PST files in MS Exchange 2016 2 73
Learn to move / copy / export exchange contacts to iPhone without using any software. Also see the issues in configuration of exchange with iPhone to migrate contacts.
A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
To show how to create a transport rule 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 Mail Flow >> Rules tab.:  To cr…
To show how to generate a certificate request 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 >> Certificates…

732 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