Dan Mitchell
Guest
|
Posted:
Tue Jan 25, 2005 10:28 pm Post subject:
Re: Any redistributables for sending a mail from my app ? |
|
|
Timothy Madden <mrnopersonality@yahoo.com> wrote in news:35n8f7F4obl9kU1
@individual.net:
| Quote: | Can I find some redistributables from Microsoft to send mail from my
application ?
Can I send mail from an app without requiring a proper
Outlook/Exchange
instalation on client's machine ?
|
If you want to use CDO1.21, no, you have to distribute something to get
Extended MAPI on there (because CDO1.21 is just an easier-to-use wrapper
for ExMAPI) and that's basically the problem you've hit, you need to
install Outlook,Exchange admin console, or some other application.
There's no redistributable either; even if CDO.DLL was distributable
(which it isn't, MS don't want to support it other than when it's
installed by Outlook so they know which version is which) then it would
still require something to get ExMAPI on the system.
If you can assume that the client PC will have some sort of mail app,
but you don't know which one, then you could try using Simple MAPI --
that'll let you send mail, and most mail clients implement that.
If you can't assume anything at all about the client PCs, then your
best bet is to use SMTP, which just requires a socket and the name of a
server to send it through -- there's tools like blat which will send
mail that way, or you could use an existing library to do it (there's
plenty of smtp components for sale), or you could use some source code
-- there's a lot of 'send mail' bits at (for instance)
http://www.codeguru.com/Cpp/I-N/internet/
-- dan |
|