How Do I launch cc:Mail with shell()? 
Author Message
 How Do I launch cc:Mail with shell()?

I need to launce Lotus cc:Mail from an Access Function, but when I use

shell("M:\ccmail\ccmail.exe", vbHidden)

cc:Mail keeps telling me "The working directory path must match the
program path in windows file|properties."

How do I transfer the program path on to it?  Can anyone point me in the
right direction?



Sun, 03 Jun 2001 03:00:00 GMT  
 How Do I launch cc:Mail with shell()?

The ShellExecute API function allows you to pass it the working
directory (called "current directory" in the API documentation) as well
as the path to the program you are trying to start.  By passing the
working directory to be the directory where the cc:Mail client is
installed, you should be able to avoid that error.  Refer to your
favorite API documentation for info on how to call that function.  

Another alternative for you is to use our IDSMail component to
send/receive cc:Mail from within your Access application.  For example,
this VBA code will send a cc:Mail message with a file attachment:

Dim idsMail as Object
Set idsMail = CreateObject("IDSMailInterface.Server")
idsMail.ObjectKey = "ABC123"
idsMail.AddRecipientTo "Jim Smith"
idsMail.AddRecipientCc "Mary Brown, Doug Williams"
idsMail.Subject = "Meeting Agenda"
idsMail.Message = "Here is the agenda for the weekly meeting."
idsMail.AddAttachment "C:\MEETINGS\AGENDA.DOC"

IDSMail uses cc:Mail's VIM API (Vendor Independent Messaging) and does
not require to launch the cc:Mail client program.  This gives you better
performance and higher reliability.  

For more info on IDSMail, go to


Eric June
Intuitive Data Solutions

--------- We Make OLE Servers Intuitive --------------

Intuitive Data Solutions           fax: (408) 776-1267
Send/Rcv Email *EASILY* through SMTP/POP, VIM, MAPI,

Sun, 03 Jun 2001 03:00:00 GMT  
 [ 2 post ] 

 Relevant Pages 

1. E:Mail via cc:Mail using VB4.0

2. Working with VIM mail - Creating folders in cc:Mail

3. Launching mail using Powerbuilder and mail session

4. Access 8 - CC-Mail 8

5. HELP : How do I get the CC address from a mail item

6. Extract to and cc from generated e-mail message

7. CC Mail and Visual Basic

8. cc:Mail from VB

9. How to send cc:Mail from VB or MS Access

10. Looking for cc:mail control

11. newbie: want to interface VB with old CC:MAIL

12. sending a cc:mail msg from VB


Powered by phpBB® Forum Software