Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using cdosys on Exchange Server

Status
Not open for further replies.

cmn2

Programmer
Mar 6, 2003
73
US
Hello
I am trying to update a vb6 program that should send emails directly from a directory on the exchange server. The exe is actually on the server. I am struggling trying to set the correct configuations using the cdosys dll.
The error I am getting says Transport failed to connect to the server.
Does anyone have any experience coding with cdosys and is the right approach to create a bulk email application on exchange server? Thank you for your time in helping me out.

Here is a portion of my code
Set mailMessage = New CDO.Message

Set mailConf = New CDO.Configuration
Set MCFields = mailConf.Fields

MCFields.Item(cdoSendUsingMethod) = cdoSendUsingPort
MCFields.Item(cdoSMPTServerPort") = 25
MCFields.Item(cdoSMTPServer) = "myserver.com"
MCFields.Item(cdoSMTPAuthenticate) = cdoAnonymous

MCFields.Update

Set mailMessage.Configuration = mailConf
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top