SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
MailSendWithAttachment Problems on Multiple Attachments

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
MailSendWithAttachment Problems on Multiple Attachments
Author Message
jeff33190



Joined: 22 Aug 2007
Posts: 96

Post MailSendWithAttachment Problems on Multiple Attachments Reply with quote
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 View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7951

Post Reply with quote
Code:
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 View user's profile Send private message
jeff33190



Joined: 22 Aug 2007
Posts: 96

Post Reply with quote
That seems to work. Thanks
Wed Aug 19, 2009 2:09 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 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
Design by Freestyle XL / Flowers Online.