Link to home
Start Free TrialLog in
Avatar of rstclair
rstclair

asked on

MAPI w/o mail client running?

Is it possible to send e-mail messages using MAPI in VB without having Outlook up and running?  The routines I'm currently using seem to require Outlook in order to resolve names and send e-mail.  Without Outlook running, these two things fail, but the MAPI routines are able to login successfully using the "MAPILogon" routine with the username and password that I provide in code.

I need a solution that requires no user interaction and no e-mail client running.  Is this possible?
Avatar of rkot2000
rkot2000

you need to use smpt mail.
Avatar of Éric Moreau
Use this free and easy to use component: http://www.freevbcode.com/ShowCode.Asp?ID=109
Avatar of rstclair

ASKER

If my goal is to interact with an Exchange server, would it be better to use CDO rather than straight SMTP?  I understand that SMTP is probably simpler, but it almost seems to me like CDO would be more appropriate for me.  Is there an advantage to using one method over the other?

Thanks for the replies so far!
ASKER CERTIFIED SOLUTION
Avatar of rkot2000
rkot2000

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Since I don't readily know the name/address of my client's SMTP server, I think I will try to use CDO for now.  Creating mail profiles on the server on which this mail application will run is not a problem.  The only thing I've noticed with CDO is that it seems to generate virus warning messages when connecting to the server, etc.  Is there a way around this?  I'm assuming that the SMTP method does not generate any kind of windows requiring user input?
>>>I'm assuming that the SMTP method does not generate any kind of windows requiring user input?

100% correct


>>>The only thing I've noticed with CDO is that it seems to generate virus warning messages when connecting to the server.

you can create an application to monitor windows and close popup window(s) or you can search support.microsoft.com for more info



try this
http://support.microsoft.com/default.aspx?scid=kb;EN-US;290500



If you use a third-party add-in, custom solution, or other program that integrates with Outlook 2002, you may receive one or more of the following warnings:

http://support.microsoft.com/default.aspx?scid=kb;EN-US;290498
Thanks for all of your help.  This discussion has been very helpful and I guess I have a few solutions to mull over.