SMTP Email from ASP page

I need to send an email from an INTRANET asp page. Using Lotus notes domino server which my web page has access to to. How do I send the email from my web page pointing through to my smtp server. I've never sent an email from a page so this is new thing for me.

I have however used MS Access using cdonts and this worked however under the asp code it doesn't seem to be working. Maybe I'm missing a setup step in IIS. If so where do I setup, to point to the lotus notes server?

Any help would be appreciated.
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.

    Dim MyCDONTSMail
    Dim sBody, SText, sFrom, sTo, sSubject, sText1
    sFrom = ""
    sTo = ""
    sSubject = "Message From Intranet"
    sBody "This is the body text of the email"

    Set MyCDONTSMail = CreateObject("CDONTS.NewMail")
    MyCDONTSMail.From= sFrom
    set MyCDONTSMail=nothing
Mrxl, the above code will work for the CDONTS object as long as you have the virtual SMTP server started within IIS

Below is an article abotu setting up the IIS virtual server: -

And this link has some good tips about configuring the security: -

Let me know if that helps :)

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
If using CDONTS does not work for you, I know of an ActiveX dll you can use to help sending e-mail.
I use this for a web e-mail system for our customers.


They provide lots of examples on how to use their components and they have great support too!
MRXLAuthor Commented:
Thanks MoOTottle, That helped i tried searching technet but couldn't find anything. I awarded you the points as I did already know how to do the cdonts. As I long as I got it working I suppose. Thanks everyone.
Glad it helped :)
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
Web Languages and Standards

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.