Article View: borland.public.csharpbuilder.language.csharp
Article #541Re: SmtpMail
From: Theo Bebekis
Date: Tue, 16 Nov 2004 08:28
Date: Tue, 16 Nov 2004 08:28
60 lines
2903 bytes
2903 bytes
Ray wrote:
> Hi Theo
>
> No sign of cdo.dll on my system
>
> Looked at http://support.microsoft.com/kb/171440/EN-US/ and this says that
> you have to install CDO 1.21 with Outlook 8 and other applications such as
> Exchange 5.5 or 2000. Windows XP is not one of them.
>
> Still at least this explains why the error message - there ain't no CDO
> installed. Just another Microsoft ploy to extract more money from you I
> suppose.
>
> Ray
Ray
I've just checked the documentation for the SmtpMail class.
Quotted:
"
Provides properties and methods for sending messages using
the Collaboration Data Objects for Windows 2000 (CDOSYS) message component.
"
and at the bottom of the page, at the Platforms requirements says that
"
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
"
It seems that SmtpMail class works only on W2K systems and above.
So, you have to find an alternative for sending mail messages.
I believe it can be done by importing the ShellExecute() Win32 API function
and using the verb "mailto". The old way of doing things.
--
Regards
Theo
PS. Here is an article by Kudzu (the famous Indy project) posted
today to CodeProject on how to send mails using a .Net open source
version of the Indy package
http://codeproject.com/csharp/IndySMTP.asp
------------------------
Theo Bebekis
Thessaloniki, Greece
------------------------
Greek_Delphi_Prog : a Delphi Programming mailing list in Greek at
http://groups.yahoo.com/group/Greek_Delphi_Prog
atla_custom : a Unisoft Atlantis Customization mailing list at
http://groups.yahoo.com/group/atla_custom
------------------------
Technical Details
Message-ID:
<4199ba29@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news2.euro.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41950bbf@newsgroups.borland.com> <1a97e73svj36s.dlg@marcrohloff.40tude.net> <4195d29a@newsgroups.borland.com> <41986bf0@newsgroups.borland.com> <41989e64@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1efe35,b6cd67095944af33 X-Google-Attributes: gid1efe35,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 16 Nov 2004 10:28:45 +0200 From: Theo Bebekis <teo@thinx.gr> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040803 X-Accept-Language: el, en-us, en MIME-Version: 1.0 Newsgroups: borland.public.csharpbuilder.language.csharp Subject: Re: SmtpMail References: <41950bbf@newsgroups.borland.com> <1a97e73svj36s.dlg@marcrohloff.40tude.net> <4195d29a@newsgroups.borland.com> <41986bf0@newsgroups.borland.com> <41989e64@newsgroups.borland.com> In-Reply-To: <41989e64@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 62.103.77.21 Message-ID: <4199ba29@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1100593705 62.103.77.21 (16 Nov 2004 00:28:25 -0700) Lines: 60 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news2.euro.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!news-hub.cableinet.net!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail