 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
jeff33190
Joined: 22 Aug 2007 Posts: 96
|
|
Set E-mail Message Content Type in Script |
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7953
|
|
|
|
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 |
|
 |
jeff33190
Joined: 22 Aug 2007 Posts: 96
|
|
|
|
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 |
|
 |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7953
|
|
|
|
You don't need to change settings from script. Just provide message text as HTML formatted text, that's all.
Example
 |
 |
Dim MyMessage, string
Set MyMessage, "<html><font>Hi</font> there</html"
MailSend ... MyMessage |
|
|
Wed Apr 01, 2009 6:56 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
|
|
|