As I mentioned. CDOSYS (CDO for Windows 2000) comes with Windows
2000/.NET Server (and Windows XP BTW) and offers such features. To send
a message with CDOSYS via a remote SMTP server you just need to set it
like this:

Set objConfiguration = CreateObject("CDO.Configuration")
Set objFields = objConfiguration.Fields
With objFields
       .Item(cdoSendUsingMethod) = cdoSendUsingPort
       .Item(cdoSMTPServerPort) = 25
       .Item(cdoSMTPServer) = "myservername.mydomain.com"
       .Update
End With

Set objMessage = CreateObject("CDO.Message")
With objMessage
       Set .Configuration = objConfiguration
       .From = "[EMAIL PROTECTED]"
       .To = "[EMAIL PROTECTED]" 
       .Subject = "Here comes a Subject"
       .TextBody = "Here is a text body"
       .Send
End With

It is BTW pretty well documented on MSDN.

<Siegfried />

> -----Original Message-----
> From: Felicity Smith [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 04, 2002 4:11 AM
> To: Exchange Discussions
> Subject: RE: CDO/ IIS force through Exchange
> 
> Before posting the original reply I did have a look at all CDO
model's.
> None of them (as far as I can see) allow you to specify which SMTP
server
> you want to send your email out from.
> 
> Can you tell me which method/property you are using to "hardcode" the
SMTP
> server name?
> 
> TIA
> 
> --Felicity
> 
> > > The Win2k CDO object model does NOT allow you to tell CDO what
server
> > to
> > > use to send mail out.
> >
> > I'm sorry, but that's not correct. Windows 2000/.NET Server ships
with
> > CDOSYS (CDO for Windows 2000) which is completely SMTP based and can
> > easily be used to submit a mail to a remote SMTP server.
> >
> > Just my $.02US
> >
> > <Siegfried />
> >
> > > -----Original Message-----
> > > From: Felicity Smith [mailto:[EMAIL PROTECTED]]
> > > Sent: Monday, June 03, 2002 9:08 PM
> > > To: Exchange Discussions
> > > Subject: RE: CDO/ IIS force through Exchange
> > >=20
> > > I just wanted to correct my earlier post.  Sorry if I led anyone
> > astray.
> > >=20
> > > OWA and other web clients running WebDav might encounter problems
with
> > > some legacy proxy server's detecting the WebDav http verbs and not
> > forward
> > > them.
> > >=20
> > > However you should not experience this problem locally.  The IIS
SMTP
> > > server is merely a relay agent.  I suspect Chris is correct in his
> > > response (I have no idea what he means though).
> > >=20
> > > The Win2k CDO object model does NOT allow you to tell CDO what
server
> > to
> > > use to send mail out.  MAPI will by default send it out using your
> > mail
> > > profile and hence your SMTP server.
> > >=20
> > > Once again I apologize for my mistake.
> > >=20
> > > --Felicity
> > >=20
> > >=20
> > > > Tried specifying the Exchange server as the smart host?
> > > >
> > > > > -----Original Message-----
> > > > > From: Narkinsky, Brian
[mailto:[EMAIL PROTECTED]]
> > > > > Sent: Sunday, June 02, 2002 5:27 PM
> > > > > To: Exchange Discussions
> > > > > Subject: CDO/ IIS force through Exchange
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > >  I am trying to allow my programmers to develop an
application
> > that
> > > > > > will mail outside of our local domain.
> > > > > >
> > > > > > We are running the script on an IIS server.  The problem is
> > > > > that while
> > > > > > we can deliver to our local domain ,mail going to outside
> > domains
> > > > > > fails.
> > > > > >
> > > > > > Our firewall only allows SMTP connections from our Exchange
2000
> > > > > > servers and it appears that the IIS server is trying to send
> > mail
> > > > > > directly to the remote domains.
> > > > > >
> > > > > > So I think my question is how do I force my IIS server to
> > > > > forward all
> > > > > > messages to my Exchange 2000 servers.  Obviously I am
> > > > > missing something
> > > > > > simple but, danged if I can figure it out.
> > > > > >
> > > > > > Brian
> > > > > > Brian Narkinsky
> > > > > > System Manager
> > > > > > Department of Environmental Protection
> > > > > > MS 6520
> > > > > > 2600 Blairstone RD
> > > > > > Tallahassee, FL 32399
> > > > > > phone (850)488-1205
> > > > > > fax (850)412-0400
> > > > > >
> > > > >
> > > > >
_________________________________________________________________
> > > > > List posting FAQ:
http://www.swinc.com/resource/exch_faq.htm
> > > > > Archives:
http://www.swynk.com/sitesearch/search.asp
> > > > > To unsubscribe:         mailto:[EMAIL PROTECTED]
> > > > > Exchange List admin:    [EMAIL PROTECTED]
> > > > >
> > >=20
> > > _________________________________________________________________
> > > List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
> > > Archives:               http://www.swynk.com/sitesearch/search.asp
> > > To unsubscribe:         mailto:[EMAIL PROTECTED]
> > > Exchange List admin:    [EMAIL PROTECTED]
> 
> _________________________________________________________________
> List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
> Archives:               http://www.swynk.com/sitesearch/search.asp
> To unsubscribe:         mailto:[EMAIL PROTECTED]
> Exchange List admin:    [EMAIL PROTECTED]

_________________________________________________________________
List posting FAQ:       http://www.swinc.com/resource/exch_faq.htm
Archives:               http://www.swynk.com/sitesearch/search.asp
To unsubscribe:         mailto:[EMAIL PROTECTED]
Exchange List admin:    [EMAIL PROTECTED]

Reply via email to