"C:\Program Files\Microsoft Office\OFFICE11\OUTLOOK.EXE" /autorun
ScheduledTask
In the global scenario I want to be able to email myself if a started
task fails.
Which you can set up through the services (Task Scheduler).
Any advice on this?
thanks in advance
G
To run a macro on Outlook startup you would have to call it from the
Application_Startup event handler in the ThisOutlookSession class module.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"Hapyfishrmn" <hapyf...@yahoo.com> wrote in message
news:c98e2c8c.04071...@posting.google.com...
G
"Ken Slovak - [MVP - Outlook]" <kens...@mvps.org> wrote in message news:<uvXZiNea...@TK2MSFTNGP10.phx.gbl>...
To see how to set up code in ThisOutlookSession you can look at
http://www.outlookcode.com/d/code/zaphtml.htm, which runs automatically but
shows how to initialize code in Application_Startup. The code would just be
a Sub in any code module or in the ThisOutlookSession class module that is
called from the Application_Startup event.
You would have to write your own code from scratch, however. Outlook also
doesn't have a macro recorder as Word does.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"Hapyfishrmn" <hapyf...@yahoo.com> wrote in message
news:c98e2c8c.04071...@posting.google.com...
So you basically need to write a custom application/script that sends the e-mail, and have this run whenever a given task in the Task Scheduler fails. You would not write the code within the Outlook VBA Editor itself.
--
Eric Legault - B.A, MCP, MCSD, Outlook MVP
--------------------------------------------------
{Private e-mails ignored}
Job: http://www.imaginets.com
Blog: http://blogs.officezealot.com/legault/
"Eric Legault [MVP - Outlook]" <elega...@REMOVEZZZmvps.org> a écrit dans
le message de news:8D0AE2BC-3453-4935...@microsoft.com...
> What you need to do is create an .exe or a .bat file.
>...
Easier should be to use one of the numerous command line smtp clients (ie
Blat : http://www.blat.net !-)
--
Grég
--
Eric Legault - B.A, MCP, MCSD, Outlook MVP
--------------------------------------------------
{Private e-mails ignored}
Job: http://www.imaginets.com
Blog: http://blogs.officezealot.com/legault/
To run a macro in Outlook was a way the user thought to answer its main
goal:
"In the global scenario I want to be able to email myself if a started
task fails.
Which you can set up through the services (Task Scheduler).
Any advice on this?" (from
news:c98e2c8c.04071...@posting.google.com)
"Eric Legault [MVP - Outlook]" <elega...@REMOVEZZZmvps.org> a écrit dans
le message de news:94E4334D-DCB0-423F...@microsoft.com...
> The SMTP client you mentioned does not support macros, so this app is of
no use to the user.
So to be able to send an email using a command line may help the user even
if this program do not support macros !-))
--
Grég
Another option is to code against Simple MAPI; this would then use any MAPI compliant e-mail application that is installed for simple sends.
Where is some good information about coding using MAPI. Better yet I
would like to know more about what it is. So I would know how to get
started to program it.
I appreciate all the comments.
G
Selecting a Client Interface:
http://msdn.microsoft.com/library/en-us/mapi/html/_mapi1book_selecting_a_client_interface.asp?frame=true
--
Eric Legault - B.A, MCP, MCSD, Outlook MVP
--------------------------------------------------
{Private e-mails ignored}
Job: http://www.imaginets.com
Blog: http://blogs.officezealot.com/legault/