![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
I am working on an application where I want to allow a user to send a
message to multiple customers at once. I stumbled across CDO and have some questions regarding how it works. I found the following code on Microsoft's web site: '************************************************* ************************************************** ******** set iMsg = CreateObject("CDO.Message") set iConf = CreateObject("CDO.Configuration") Set Flds = iConf.Fields ' Set the CDOSYS configuration fields to use port 25 on the SMTP server. With Flds .Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = cdoSendUsingPort 'ToDo: Enter name or IP address of remote SMTP server. .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "remote SMTP server" ..Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 10 .Update End With '************************************************* ************************************************** ******** You can specify a SMTP server in the code. My questions is, does this SMTP server have to be the SMTP server that the recipient uses to retrieve his or her e-mail or can this be the SMTP server through which I wish to send the e-mail? My initial testing seems to suggest the former. Is the latter possible? If so, how do you authenticate yourself to the SMTP server through which you are sending the e-mail? Thanks for any and all help. -Vincent |
Ads |
#2
|
|||
|
|||
![]()
It can be any SMTP server. CDO for Windows has no relationship with the user's mail accounts. I think MSDN has documentation that explains the authentication possibilities. It's a bit outside the scope of this newsgroup, which deals with OUtlook programming.
-- Sue Mosher, Outlook MVP Author of Configuring Microsoft Outlook 2003 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx wrote in message oups.com... I am working on an application where I want to allow a user to send a message to multiple customers at once. I stumbled across CDO and have some questions regarding how it works. I found the following code on Microsoft's web site: '************************************************* ************************************************** ******** set iMsg = CreateObject("CDO.Message") set iConf = CreateObject("CDO.Configuration") Set Flds = iConf.Fields ' Set the CDOSYS configuration fields to use port 25 on the SMTP server. With Flds .Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = cdoSendUsingPort 'ToDo: Enter name or IP address of remote SMTP server. .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "remote SMTP server" ..Item("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 10 .Update End With '************************************************* ************************************************** ******** You can specify a SMTP server in the code. My questions is, does this SMTP server have to be the SMTP server that the recipient uses to retrieve his or her e-mail or can this be the SMTP server through which I wish to send the e-mail? My initial testing seems to suggest the former. Is the latter possible? If so, how do you authenticate yourself to the SMTP server through which you are sending the e-mail? Thanks for any and all help. -Vincent |
#3
|
|||
|
|||
![]() |
#4
|
|||
|
|||
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook doesn't connect to POP3/SMTP servers when using WiFi | Jim F | Outlook - Installation | 3 | June 1st 06 05:12 PM |
OE locks up with invalid POP3 and SMTP servers | Jimmy Ho | Outlook Express | 5 | May 25th 06 05:04 AM |
mapi cdo service | [email protected] | Outlook - General Queries | 8 | February 20th 06 02:33 PM |
Do i need Exchange for CDO | A. Peters | Outlook and VBA | 4 | February 17th 06 11:52 PM |
Is it possible to define 2 SMTP servers without adding a new identity? | Jimmy Ho | Outlook Express | 3 | January 28th 06 01:32 PM |