 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
mlr0911
Joined: 13 Jul 2007 Posts: 35 Country: United States |
|
MailSendWithAttachment Question |
|
Is there a way to tell the MailSendWithAttachment code to send an email to certain people based off of a list of email address in an excel sheet?
Thanks for your help.
|
|
Wed Aug 08, 2007 12:18 pm |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7951
|
|
|
|
It is sure possible with some scripting. For example, you can setup an ODBC profile to access your Excel worksheet like a table in the database. Excel ODBC driver comes with Windows. You can then code a JAL job in 24x7 to connect to the file (DatabaseConnect) and retrieve the data from it like fro ma table in the database (DatabaseRetrieve) after which loop though all returned records and send and execute MailSendWithAttachment for each record.
Another way to implement this is to use VBScript job in 24x7 to access data in Excel file. An example job for Excel is available in the Examples Job database file provided with the 24x7. You can have the VBScript job call internal JAL' MailSendWithAttachment function using the built in JAL.Execute interface.
|
|
Wed Aug 08, 2007 2:33 pm |
|
 |
|
|
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
|
|
|