Configuring Smtp

I

isheikh

I am unable to send email. I am trying to send email to my yaho
account from hotmail using SMTP and using ASP.
I am on windows 2000 advanced server. My code runs fine and tell m
email has been sent.


<%
Option Explicit

Dim objNewMail


Set objNewMail = Server.CreateObject("CDONTS.NewMail")


objNewMail.From = "(e-mail address removed)"
objNewMail.To = "(e-mail address removed)"


objNewMail.Subject = "This is a test Mail"
objNewMail.Body = "This is the Body text of this test mail."
objNewMail.Send



Set objNewMail = Nothing



Response.Write "Email has been sent"

%>


To configure. I follow the following instructions from Micrssof
website.
************
How to Configure the Internal IIS 5.0 SMTP Server
If you configure the SMTP server with a remote domain that accepts mai
for your mail domain, unauthorized users cannot use your server as
relay to send junk e-mail (spam). The remote domain is configured t
relay mail to the internal mail server. To configure the internal II
5.0 SMTP server:

1. Click Internet Services Manager on the Administrative Tool
menu.
2. Click to expand Default SMTP Virtual Server, right-click Domains
click New, and then click Domain.
3. After the New SMTP Domain Wizard starts, click Remote, and the
click Next.
4. On the Select Domain Name page, type the domain name for th
domain on which your mail server accepts mail.

For example, if you want the IIS 5.0 SMTP server to accept onl
mail that is sent to domain.com, create a remote domain for domain.com
Messages that are destined for other domains are rejected.
5. Click Finish.
6. Double-click the remote domain, and then click Forward all mai
to smart host.
7. Type the Internet Protocol (IP) address of your internal mai
server.

NOTE: Surrounded the IP address with brackets ([ ]).
8. Click Allow incoming mail to be relayed to this domain, and the
click OK.
9. Stop and start the SMTP service.

***************

Is there anything else I need to do, what about properties of SMTP?

MY code runs fine but no email received at my yahoo account. I a
interested only in sending email.

Your help will be appreciated

Thank


-
isheik
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top