OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

How to send the Email automastically on particuler time

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
Anu Nithra
Newbie
Newbie


Joined: 25 Dec 2011
Posts: 1
Location: chennai

PostPosted: Sun Dec 25, 2011 9:03 pm    Post subject: How to send the Email automastically on particuler time Reply with quote

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
View user's profile Send private message
QuazzieEvil
Super User
Super User


Joined: 17 Jan 2007
Posts: 599
Location: Houston, TX

PostPosted: Mon Jan 02, 2012 10:43 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group