Hello
Dnolan ....... You asked:
Quote:Can anyone give me a programming code where I can click on the E-Mail and it will automatically launch an e-mail through Microsoft Outlook? I need this desperately! It would be great if someone could help here. Thanks!
There are a number of Outlook items that can be created with @Shell.
The basic syntax for Outlook with command switches is:
"FullPath\Outlook.exe /c ipm.class"
The acceptable ipm classes for Outlook objects are:
Mail: ipm.note /m recipient(;s)
Calendar: ipm.appointment
Tasks: ipm.task
Contacts: ipm.contact
Journal: ipm.activity
Discussion: ipm.post
Sticky Notes: ipm.stickynote
Note that there is a space between /m and the recipient(;s)
An example of an Outlook email with two recipients:
Quote:var n as Int
n = @SHELL(@CHR(34) + "C:\Program Files\Microsoft Office\Office\outlook.exe" + @CHR(34) + " /c ipm.note /m recipient1@myplace.com;recipient2@yourplace.com")
or
Quote:var n as Int
var vRecipient as String = "recipient1@myplace.com;recipient2@yourplace.com"
n = @SHELL(@CHR(34) + "C:\Program Files\Microsoft Office\Office\outlook.exe" + @CHR(34) + " /c ipm.note /m " + vRecipient)
An example of an Outlook email using a field value as a variable for the recipient:
Quote:var n as Int
var vRecipient as String
vRecipient = Addressee
n = @SHELL(@CHR(34) + "C:\Program Files\Microsoft Office\Office\outlook.exe" + @CHR(34) + " /c ipm.note /m " + vRecipient)
An example of an Calendar Appointment:
Quote:var n as Int
n = @SHELL("@CHR(34) + "C:\Program Files\Microsoft Office\Office\outlook.exe" + @CHR(34) + " /c ipm.appointment")
This command string will open up an instance of the Outlook object which you can fill in, and Save and Close. These commands can be used from any program (including versions of Q&A, and even in DOS batch files.
I believe that this will work with mulitple versions of Outlook. Also, note that Outlook is not the same as Outlook Express which has a totally different syntax
================================
(Note - edited on 3/7/04, RMH: The examples above replace the original entries which had incorrect syntax). See additional information on 3/7/04 posting.