Topic Options
#710 - 05/27/03 03:34 PM need to send email an email hourly
bugster Offline
Junior Member

Registered: 05/27/03
Posts: 1
this was kinda unexpected, but i needed something that sends an email using OE on WinXP pro today so i came to this software through searching. But since im in such a hurry to get this up and running, i cant really learn all the features yet. What i want to do is:


Send an 1 email to 2 people HOURLY, for 7 days. Lets say my email body is "testing" for now....can someone show me how to go about setting this up? Thanks, this is very urgent.

Top
#711 - 05/27/03 07:24 PM Re: need to send email an email hourly
Luke Tomasello Administrator Offline
Member

Registered: 09/17/00
Posts: 740
Loc: San Jose, CA., USA
If you look in the Sample Scripts directory you'll find this script:

## mail_basic_test.tg
# Ask the mail service to send a message for you.
# This script logs into MAPI using the profile
# This scrip assumes:
# 1. EMAIL_PROFILE has been set. Usually set in Config.tg
# 2. A MAPI email client installed (e.g. Outlook)
# 3. This script is running in an accout that has a MAPI profile.
# (NOT running in the LocalSystem account. See the documentation on running Proxy
# services at http://www.tomasello.com/software/wincron/system_service.htm)

# send an email
{
-name mail_basic_test
-start
-stop
-action -onerror operation_fail
-action -print logon to email. This may take a moment...
-action -mail Logon myHandle "%EMAIL_PROFILE%"
-action -print sending an email
-action -mail SendMail test@wincron.com "the subject" "the body"
-action -print logoff from email
-action -mail Logoff myHandle
-action -print done!
}

# operation failed
{
-name operation_fail
-action -print mail failed with error:
-action -print %TG.LAST_ERROR%
-action -return abort
}


You should probably work on understanding this script and getting it to work.

Once you do that, I'll help you with the scheduling part. (Hint: it's the -start directive.)
_________________________
Regards,
Luke Tomasello

Top


Moderator:  Luke Tomasello