LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.misc
external usenet poster
 
Posts: 49
Default Error when sending mail with CDO

Hello,

One of our users reported a problem with sending email using CDO on
only one particular pc.
The problem didn't actually manifest itself in Excel, however the code
they use is almost identical to the code on http://www.rondebruin.nl/cdo.htm
I can also simulate the problem when I copy the Ron De Bruin code to
an Excel VBA code module and execute it on that particular pc.

The error in the applications is:

Fouten bij gegevenstransport
Er zijn fouten gebeurd bij het verzenden van de email :
De transportfunctie kan geen verbinding maken met de server.

In Excel/VBA, it goes like this:

Fout -2147220973 (80040213) tijdens uitvoering:
Automatiseringsfout

This error pops up on the .Send command.

I have already tried to send an email using Telnet (HELO, MAIL FROM,
RCPT TO, DATA) to rule out network or firewall issues. Telnetting to
port 25 of the mailserver worked just fine.

I searched for the error number and I only came up with a possible
solution that says that you have to add authentication by adding the
following to iConf.Fields:

..Item("http://schemas.microsoft.com/cdo/configuration/
smtpauthenticate") = 1
..Item("http://schemas.microsoft.com/cdo/configuration/sendusername") =
"username"
..Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") =
"password"

but that didn't work either. The error was:

Sending NOT OK: Het bericht kan niet worden verzonden naar de SMTP-
server. De foutcode van het transport is 0x80040217. Reactie van
server: not available

I searched that error number too but I didn't find any interesting
answers.

We are using WindowsXPsp2 and Office2003sp3.
The SMTP server is a Lotus Notes server on the internal network and it
accepts SMTP connections without a need for authentication AFAICT.
(because the telnet test worked)

Except for replacing the pc, I have run out of ideas.
Has anyone ever encountered (and solved) a similar problem?

--
Amedee
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending a blank e-mail Hawksby Excel Discussion (Misc queries) 1 September 25th 07 09:16 AM
Sending one sheet by mail Robert Excel Discussion (Misc queries) 1 June 18th 06 10:43 AM
Sending E-Mail by code ASU Excel Discussion (Misc queries) 2 June 13th 06 01:17 PM
General mail failure when sending e-mail from Excel Adrienne Excel Discussion (Misc queries) 5 November 4th 05 12:59 PM
Sending E-mail litew_8 Excel Worksheet Functions 1 November 21st 04 06:13 AM


All times are GMT +1. The time now is 07:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"