SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Emailing w Attachment Script

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Emailing w Attachment Script
Author Message
Randall Bosley



Joined: 18 Aug 2003
Posts: 1

Post Emailing w Attachment Script Reply with quote

How can I do the following:

1- I would like the receipts to be Blind Copied bcc: .....so they cannot see all the other people in the listing.

The default script assumes the receipt as the TO: field.
2- I would like to place a Date function in either the subject line or body text of the email which references

the current date or previous month

example ( Subject line: "AMS Business Unit Scorecard June 2003" )
How can I do this?

Mon Aug 18, 2003 2:40 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Re: Emailing w Attachment Script Reply with quote

The second issue is very simple - just insert @T"date format" macro-variable into the subject or message text. For available macro-variables and date/time formats please see @Macro-variables topic in the on-line help.

The first issue is more complicated - 24x7 does not currently provide support for BCC in order to simplify email operations. It supports multiple recipients in the TO property.
If you really want BCC you need to develop your own email function and use it instead of built-in MailSend command.

If you are running Windows 2000 or later you can use CDONTS objects for this purpose.

Here is an example of VBScript job.

Dim myMail
Set myMail = CreateObject("CDONTS.NewMail")
myMail.BodyFormat = 1
myMail.MailFormat = 1
myMail.From = " My Name"
myMail.To = "recipient@mycompany.com"
myMail.Bcc = "bcc_recipient@mycompany.com"
myMail.Subject = "Test"
myMail.Body = "Test"
myMail.Send
Set myMail = Nothing

: How can I do the following: 1- I would like the receipts to be Blind Copied
: bcc: .....so they cannot see all the other people in the listing.

: The default script assumes the receipt as the TO: field.
: 2- I would like to place a Date function in either the subject line or body
: text of the email which references

: the current date or previous month

: example ( Subject line: "AMS Business Unit Scorecard June 2003" )
: How can I do this?

Mon Aug 18, 2003 3:20 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.