| View previous topic :: View next topic |
| Author |
Message |
Anu Nithra Newbie

Joined: 25 Dec 2011 Posts: 1 Location: chennai
|
Posted: Sun Dec 25, 2011 9:03 pm Post subject: How to send the Email automastically on particuler time |
|
|
Im using the below code to send the email via lotus note application. Its opening the lotus note with specified Recipient and sub.
oMailer = createUnoService( "com.sun.star.system.SimpleSystemMail" )
oMailClient = oMailer.querySimpleMailClient()
oMessage = oMailClient.createSimpleMailMessage()
oMessage.setRecipient( cEMailAddress )
'oMessage.setCCRecipient( dCCRecipients() )
oMessage.setSubject( cSubject )
oMailClient.sendSimpleMailMessage( oMessage,nFlag )
But I wanted to trigerr it automatically on particualr day and time. how is this possible? |
|
| Back to top |
|
 |
QuazzieEvil Super User

Joined: 17 Jan 2007 Posts: 599 Location: Houston, TX
|
Posted: Mon Jan 02, 2012 10:43 am Post subject: |
|
|
You can schedule a regular task (windows) cron job (linux) to run on your desired schedule.
this task/cron job should execute a batch file(windows)/script (linux) which calls your macro.
to call a macro from the command line or a script:
soffice.exe "macro:///<library name>.<module name>.<macro name>"
example:
| Code: |
C:\Program Files\OpenOffice.org 3\program>soffice.exe "macro:///Standard.TextScrambler.Main"
|
the command is the same in linux (except that .exe is not required of course).
run soffice.exe -help for switches (such as headless) that you man want to include in your script.[/code] _________________ Free Docs @ http://www.baseprogramming.com/resources.html
Book @ lulu.com http://www.lulu.com/content/2455551 |
|
| Back to top |
|
 |
|