
How Do I launch cc:Mail with shell()?
Dave,
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.NewMessage
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.Send
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 http://www.intuitive-data.com
--
Regards,
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,
MHS & VINES http://www.intuitive-data.com/idsmail.htm
------------------------------------------------------