SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Set E-mail Message Content Type in Script

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Set E-mail Message Content Type in Script
Author Message
jeff33190



Joined: 22 Aug 2007
Posts: 96

Post Set E-mail Message Content Type in Script Reply with quote
Can I set the E-mail message content type in a script, rather than having to use the Setting under General Options? I would like different messages sent in different formats.
Thanks,
Jeff
Wed Apr 01, 2009 3:10 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7953

Post Reply with quote
Sure. Use script action for the job completion or error, instead of the email action. In the script use MailSend or Mail.send function, depending on the 24x7 version and selected script type.
Wed Apr 01, 2009 5:28 pm View user's profile Send private message
jeff33190



Joined: 22 Aug 2007
Posts: 96

Post Reply with quote
I probably wasn't clear in my original message. I'm actually already using the MailSend command in the JAL script. The problem is the formatting for all my e-mails is text/html as set on the General Options "Message Content Type". I would like to send some e-mails as html format and others as plain text. Can I change that within the script?
Thanks,
Jeff
Wed Apr 01, 2009 5:36 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7953

Post Reply with quote
You don't need to change settings from script. Just provide message text as HTML formatted text, that's all.

Example

Code:
Dim MyMessage, string
Set MyMessage, "<html><font>Hi</font> there</html"

MailSend ... MyMessage

Wed Apr 01, 2009 6:56 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.