Posted on 2011-10-15
Last Modified: 2012-05-12

There is a VB script that sends out SMTP message, which is working fine.
I execute the script from my Windows 7 workstation and I can receive email from my outlook or public email client ( gmail ).
The remote SMTP server value in the script is set to my Exchange server.
My Windows 7 ( actually any Windows 7 ) is not running SMTP service by default.
My question is what kind of protocol/service on my local machine delivers my message to the remote SMTP server ( my Exchange )?
Please see the attached code.

Thank you for your help.
Question by:JOSHUABT
    LVL 21

    Accepted Solution

    CDO is basically a scripting interface to MAPI, which is what interfaces with your Exchange server to deliver the mail.
    LVL 74

    Assisted Solution

    by:käµfm³d 👽
    SMTP itself is a protocol for transmitting messages across a network. A protocol is just a set of instructions executed in some defined order. Underlying an SMTP communication is a TCP connection to a remote server and it is this connection that is used to transmit the instructions of the protocol. Essentially, you could perform the same operations in code and have your own email transmitter.

    You may have heard of a program called Telnet. This is an application that allows you to connect to a remote server on some port and carry out a digital conversation. You could use Telnet to perform an SMTP conversation manually. You would do this by establishing the connection, and subsequently sending the commands of SMTP to the server. Here is an example:
    LVL 28

    Assisted Solution

    My question is what kind of protocol/service on my local machine delivers my message to the remote SMTP server ( my Exchange )?
    >> MAPI CDO
    First line says so.
    Set objMessage = CreateObject("CDO.Message")

    Check these 2 links about MAPI / CDO

    Author Closing Comment

    Thank you all for clarification of the subject.

    Featured Post

    Wish Marketing would stop bothering you?

    Is your marketing department constantly asking for new email signature updates? Are they requesting a different design for every department? Do they need yet another banner added? Don’t let it get you down! There is an easy way to manage all of these requests...

    Join & Write a Comment

    Use email signature images to promote corporate certifications and industry awards.
    Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
    In this video we show how to create an email address policy 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…
    The basic steps you have just learned will be implemented in this video. The basic steps are shown to configure an Exchange DAG in a live working Exchange Server Environment and manage the same (Exchange Server 2010 Software is used in a Windows Ser…

    729 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

    Need Help in Real-Time?

    Connect with top rated Experts

    21 Experts available now in Live!

    Get 1:1 Help Now