Functions | |
string | _RawInitialize (type args) |
private command to create a new mime object TOK | |
string | Initialize (type args) |
initialize a new mime object and put the old object on the stack | |
string | Finalize () |
destroy the mime object available in the global variable TOK | |
string | CallPlugin (type subject) |
call an other service on the same BID server | |
string | SendEmail (type args) |
send out the eMail using the current mime object defined in TOK | |
string | MakeBodyToTXT (type text) |
create a new text/plain mime object using text |
string _RawInitialize | ( | type | args | ) |
string Initialize | ( | type | args | ) |
initialize a new mime object and put the old object on the stack
args | the list of arguments parsed for:
|
Initialize --text -string [CreateBody token1 text1 token2.list {text2.1 text2.2 text2.3}]
string Finalize | ( | ) |
destroy the mime object available in the global variable TOK
Recover the previous mime object TOK from the stack with Initialize and reset the global variables
string CallPlugin | ( | type | subject | ) |
call an other service on the same BID server
subject | the subject of the eMail with the plugin name before the first @ |
MTA
. The service have to be local available.Initialize --text -string [CreateBody tok1 val1 tok2 val2 ...] CallPlugin service_to_call@mail Finalize
string SendEmail | ( | type | args | ) |
send out the eMail using the current mime object defined in TOK
args | a list of option/value pairs from:
|
-spam-interval
to detect SPAM and sendType or -send-type
to define the smtp server to use. If the To mime header token has the prefix appmail:
the eMail will be forwarded to the APPMAILRELAY server and finally send to the Internet using the gateway APPMAILHOST Initialize --copy SetHeader To my-Address Subject my-Subject SendEmail Finalize
string MakeBodyToTXT | ( | type | text | ) |
create a new text/plain mime object using text
text | the new string of the body |
text/plain
with text . The From
mime header token will be set to the mime header token of the old TOK .MakeBodyToTXT [CreateBody ...]