 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
jeff33190
Joined: 22 Aug 2007 Posts: 96
|
|
MailSendWithAttachment Problems on Multiple Attachments |
|
I'm having trouble with the syntax for attaching multiple files to an e-mail using the MailSendWithAttachments command. I would like to send 3 logfiles. In the help it mentions you can attach multiple files if you separate them with commas. However when I try (as shown below) it thinks I have wrong number of variables for the command.
SET logfile1, "e:\\transfer\\fab\\logs\\cuberefresh.log"
SET logfile2, "e:\\transfer\\fab\\logs\\cuberefresh2.log"
SET logfile3, "e:\\transfer\\fab\\logs\\cuberefresh3.log"
MailSendWithAttachment( "24x7", "", recipients, "Job @V"job_name" errors", "No Message", logfile1,logfile2,logfile3 )
|
|
Wed Aug 19, 2009 11:16 am |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7951
|
|
|
|
 |
 |
SET logfile1, "e:\\transfer\\fab\\logs\\cuberefresh.log"
SET logfile2, "e:\\transfer\\fab\\logs\\cuberefresh2.log"
SET logfile3, "e:\\transfer\\fab\\logs\\cuberefresh3.log"
ConcatEx( logfile1,logfile2,logfile3, attachment_list)
MailSendWithAttachment( "24x7", "", recipients, "Job @V"job_name" errors", "No Message", attachment_list ) |
Hope this helps
|
|
Wed Aug 19, 2009 12:11 pm |
|
 |
jeff33190
Joined: 22 Aug 2007 Posts: 96
|
|
|
|
That seems to work. Thanks
|
|
Wed Aug 19, 2009 2:09 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
|
|
|