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
2
votes
2 answers

CDO message wont send when delivery receipt requested

I'm writing an application in classic ASP (yes, please forgive me) that sends e-mails using Google Mail. I have it working just fine like this: Dim ObjSendMail Set ObjSendMail = CreateObject("CDO.Message") ObjSendMail.Configuration.Fields.Item…
Sparafusile
  • 4,696
  • 7
  • 34
  • 57
2
votes
1 answer

Delphi: CDO.Message encoding problems

We wrote a Delphi program that send some informations with CDO. In my Win7 machine (hungarian) the accents are working fine. So if I sent a mail with "ÁÉÍÓÖŐÚÜŰ", I got it in this format. I used iso-8859-2 encoding in the body, and this encode the…
durumdara
  • 3,411
  • 4
  • 43
  • 71
2
votes
2 answers

ASP Classic, Looping through query and sending emails

I am trying to loop through a database query and send emails to the email addresses I get from the query. Here is my piece of code. do until rs.EOF Set myMail = CreateObject("CDO.Message") myMail.Configuration.Fields.Item…
Atif
  • 280
  • 1
  • 11
2
votes
2 answers

MAPI_E_FAILONEPROVIDER from Redemption

I'm trying to user Redemption to update a user's Outlook contacts. The user I'm affecting is passed in the exchangeUser, call him "Target User". This code works when I run it logged in as myself: public OutlookFolders(string outlookRootFolder,…
RossFabricant
  • 12,364
  • 3
  • 41
  • 50
2
votes
1 answer

Set binary/base64 data as attachment in VB Script CDO.Message

I am trying to send out an email with attachment as PDF. I have my attachment data in binary/Base64, but when I am trying to write this to the stream, it is not working. Here is my code. I am using upload class from here -…
divinedragon
  • 5,105
  • 13
  • 50
  • 97
2
votes
2 answers

CDO.message vbscript - transport failed to connect

I have a vbscript on a Windows 7 machine in a branch office. It works just fine. I copied the code to a second branch office Windows 7 machine and I get an error. I'm out of ideas. Both Windows machines have MS Outlook installed. Do While…
user990016
  • 3,208
  • 4
  • 20
  • 29
2
votes
1 answer

CDO.Message Classic ASP - Adding attachment

I am having problems trying to add an attachment to an email using Classic ASP. I have trawled forums and it seems I needed to add .AddAttachment = "c:\users\samplb\logoblack.gif" but the form doesn't work anymore. It comes up with the "The website…
Samp
  • 385
  • 3
  • 4
  • 14
2
votes
2 answers

Error email send using gmail smtp server with CDOSYS

I have an error on asp page error '80040211' /contact_us1.asp, line 106 line 106 is ObjSendMail.Send method call. The bellow code is whole sending email through CDOSYS and without smtp server installed. OS - Windows Server2008R2, IIS -…
2
votes
2 answers

CDO - Not Sending email

Helllo, i am calling ASP page from HTML on click of submit button, and in ASP i want to send Email. So i have writen below code, but neither it is sending mail nor i am getting any Error. <% dim myMail Set…
User5590
  • 1,383
  • 6
  • 26
  • 61
2
votes
3 answers

CDO.Message.Fields[].Name contains weird characters

I'm reading an email file where the first line in the file (so first line in the header) is: X-RCPT-TO-LIST: 1,2,3 I'm loading it using CDO and ADODB like this: ADODB.Stream stream = new ADODB.Stream(); stream.Open(Type.Missing,…
eselk
  • 6,764
  • 7
  • 60
  • 93
2
votes
1 answer

vbscript cdo send message with smtp authentication won't allow variable in sending to field

recently added smtp authentication to our mail server and found a very funny thing. When using a variable in the to cdomessage.to field it will come back with error '8004020f'. However if I hardcode the email address it works fine. here is my…
kqlambert
  • 2,693
  • 6
  • 33
  • 50
2
votes
1 answer

Fetching gmail inbox mail messages via CDO in vba excel

I would like to access the inbox in a gmail account using CDO in VBA. I have already managed to send a mail message but do not know how to fetch the inbox messages into an excel sheet. If possible I would like to be able to identify the tags of each…
Avi Dobzinski
  • 21
  • 1
  • 2
2
votes
1 answer

CDO email access report

I have an access report which is modified by a SQL statement so that one report to corresponding recipient is generated. I am using CDO in my VBA code in access 2007. I am interested in taking this report and emailing it. How can I make the…
Sithelo
  • 307
  • 9
  • 28
2
votes
1 answer

Encoding issue with email sent from form in ASP with Hebrew text

I'm using CDO.Message to send emails from a contact form on an ASP Classic website to the site owner. The site is in Hebrew and I've encoded everything with UTF-8. My problem is that in Outlook 2007 the Hebrew sent from the form comes out in…
Dog
  • 647
  • 1
  • 9
  • 28
1
vote
2 answers

Send mail with CDO through Google Apps gives transport error: CDO.Message.1 error '80040213'

I'm trying to send an contact enquiry email from a legacy classic asp script using a Google Apps account as the SMTP server. The code I have to test this is as follows: Dim ObjSendMail Set ObjSendMail = CreateObject("CDO.Message") 'This section…
Dan
  • 5,836
  • 22
  • 86
  • 140
1 2
3
16 17