ASP sending mail using CDONTS on local machine


 i am developing an application in which an automated email has to be sent. the application is being developed on localhost. This is the sample code am using , i have configured my outlook express in which POP and SMTP servers are localhost and email i gave was vgarg@localhost
my PC name is varun2000 and i have mentioned the same in IIS . but when i run ASP script the mails is being sent to "queue" folder can some one tell me how to test on localhost

 Dim strTo, strSubject, strBody
 Dim objCDOMail
 strBody = "This message was sent"
 Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
 objCDOMail.From    = "vgarg@localhost"
 objCDOMail.To      = "vgarg@localhost"
 objCDOMail.Body    = strBody
 Set objCDOMail = Nothing
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You can test if SMTP is working on your machine by trying the following;en-us;286421
David LeeCommented:
Hi cheenudude,
> i have configured my outlook express in which POP and SMTP servers
Configuring Outlook Express has nothing to do with sending email from an ASP page using CDONTS.  Have you set up and configured the SMTP service on your PC?  If not, then that's the problem.  The SMTP service is configured and controlled via the Internet Information Services manager.  Expand your machine name and open the properties of Default SMTP Virtual Server.  Configure the service, then start it and try sending again.  Outlook Express has nothing to do with this process.

i would use Postcast SMTP Server.  It's free, light, and simple to use.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
from the downloads page, pick "PostCast Server Free Edition"
any reason for the C grade?  If you needed more help configuring it, or had other questions, you should have posted them, as opposed to giving a C with no justification
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.