Questions tagged [cdo.message]

Part of Microsoft's Collaboration Data Objects (CDO) it is usually used by WSH or .NET applications for e-mail message automation.

Documentation:

248 questions
3
votes
1 answer

Error sending email using CDO on port 587 (TLS)

Is there any trick to sending mail with CDO on port 587 (the port that uses TLS security protocol)? This is my C++ code: CDO::IMessagePtr iMsg(__uuidof(CDO::Message)); CDO::IConfigurationPtr iConf = iMsg->GetConfiguration(); CDO::FieldsPtr…
3
votes
0 answers

Modify CDO.Message and save it to a file

Following Ries Vriend's answer in regards to loading CDO.Message from EML file, I'm trying to modify the message's body and attachments and save it back to a file (while keeping the original format of the file). I wrote the following, which doesn't…
elad-ep
  • 333
  • 1
  • 9
3
votes
5 answers

Random exclamation mark in email body using CDO

We are getting random exclamation (!) mark in email body using CDO object in Classic ASP. We are not getting this exclamation mark with outlook. Problem only occur with Lotus Notes client. We use IIS SMTP server to send email. Edit Set myMail=…
jvm
  • 1,662
  • 8
  • 27
  • 46
3
votes
1 answer

Using amazon SES to send email in classic asp

I'm trying to send a test email with Amazon SES but to no luck: Dim iMsg, iConf, Flds Set iMsg = CreateObject("CDO.Message") Set iConf = CreateObject("CDO.Configuration") Set Flds = iConf.Fields Const cdoSendUsingPort = 2 With…
greener
  • 4,989
  • 13
  • 52
  • 93
2
votes
0 answers

Use vba to send email from excel using less secure devices

I have been using the following code to send emails from excel to a nominated person. It works fine if I go into my gmail and turn on "Use Less Secure Devices". Google intend to discontinue this option. How can I modify my code to overcome this…
willi
  • 33
  • 7
2
votes
4 answers

How to add an embedded image to an HTML message in Outlook 2010

I have Office 2003 VBA code that uses the technique described here to embed an image in an HTML message using undocumented MAPI properties and CDO 1.21. CDO 1.21 is no longer supported, but according to MSDN, most of its functionality is now…
Joe
  • 122,218
  • 32
  • 205
  • 338
2
votes
3 answers

Is CDO Email the best way to send email using classic asp?

I am using asp to create a webpage that is supposed to send email to several clients. It was suggested that I use CDO email functionality. Is this the best solution for a classic asp webpage? Or would it be better to add asp.net and ajax for…
RetroCoder
  • 2,597
  • 10
  • 52
  • 81
2
votes
0 answers

How to set repeated headers without overwriting when creating email using VBScript CDO.Message?

I am attempting to generate some emails using VBScript CDO.Message, code is below. The receiving clients, IBM (Lotus) Notes, require a number of pieces of information supplied using one header "X-Notes-Item" repeated many…
antwebb
  • 21
  • 3
2
votes
2 answers

Excel VBA CDO Mail

I'm trying to send a mail with Microsoft Office Excel 2007 VBA code but I'm getting the error: Run-time error '-2147220973 (80040213)': Automation error The code that I'm using is: Dim cdomsg As Object Set cdomsg =…
user7393973
  • 2,270
  • 1
  • 20
  • 58
2
votes
2 answers

VBA send email using Gmail: transport failed to connect

Running the Excel VBA code below I get the following error: Run-time error -2147220973 The transport failed to connect to the server Public Function send_email() Set cdomsg = CreateObject("CDO.message") With…
Ihidan
  • 419
  • 1
  • 6
  • 20
2
votes
3 answers

access vba wait for code to finish (send E-Mail via CDO)

I have the following code: Sub OutputExpences() Dim strPath As String Dim FileName As String Dim TodayDate As String TodayDate = Format(Date, "DD-MM-YYYY") strPath = Application.CurrentProject.Path & "\Temp\" FileName = "Report-Date_" & TodayDate &…
YvetteLee
  • 1,057
  • 3
  • 13
  • 27
2
votes
1 answer

When sending mail via SMTP, I get "Transport Failed to Connect to server"

I have the code below to send mail from a VBA macro using CDO. I get an error in the code: Transport failed To connect to server Error I am sending a mail from the Gmail SMTP service. Looks like the configuration is set correctly, but somehow it…
user564300
2
votes
1 answer

Specify my own message-id header when sending email with cdo.message

Is there a way to specifty my own message-id with CDO ? Using the following configuration, the message-id is still generated by the cdo component and ignores the one I specified. <% Const cdoSendUsingPort = 2 Dim iMsg, iConf, Flds Set iMsg =…
Jonathan
  • 1,276
  • 10
  • 35
2
votes
2 answers

Sending Email in Excel with VBA, no Outlook, 64 bit

I am using the code below to try and send an email in Excel using VBA. I keep getting an error: Run-time error '-2147220973 (80040213)': The transport failed to connect to the server. I have tried changing ports (25, 465, 587), changing email…
awsmitty
  • 121
  • 1
  • 2
  • 10
2
votes
3 answers

Sending mails in different languages using ASP and CDOSYS

I want to send an email using arabic text as subject line. The code piece converts the special characters into arabic text properly for message body but fails to do so for message subject. I would like to know what I am missing ? Set…
Sandhurst
  • 1,180
  • 5
  • 26
  • 40
1
2
3
16 17