This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
userspace:lib.sendmail [2014/01/10 15:54] embl-structures |
— (current) | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Library: SendMail ====== | ||
| - | |||
| - | |||
| - | Tested with opsi 4.0.2\\ | ||
| - | required WInst Version: // | ||
| - | By //Frank Thommen, 2014/01/10 11:13// | ||
| - | |||
| - | This script requires blat which can be downloaded from http:// | ||
| - | |||
| - | |||
| - | === sendmail.sub === | ||
| - | <code winst> | ||
| - | ; | ||
| - | ; ----------------------------------------------------------- | ||
| - | ; UseSendMail.sub - send file, string or stringlist as mail | ||
| - | ; ----------------------------------------------------------- | ||
| - | ; | ||
| - | ; AUTHOR: Frank Thommen, EMBL Heidelberg | ||
| - | ; SHORTNAME (for variable names): mail | ||
| - | ; | ||
| - | ; PREREQUISITE: | ||
| - | ; | ||
| - | ; | ||
| - | ; PURPOSE: Send a mail using " | ||
| - | ; can be taken from | ||
| - | ; | ||
| - | ; * a stringlist (each element will become a line | ||
| - | ; of the mailbody | ||
| - | ; * a string (this will result in a one-line mail) | ||
| - | ; * a textfile (the content will become the mailbody) | ||
| - | ; | ||
| - | ; The mail subject is user-defined, | ||
| - | ; destination address are harcoded in this version. | ||
| - | ; Therefore this version rather qualifies for sending | ||
| - | ; status mails to a fixed address rather than being a | ||
| - | ; freely configurable mailer. | ||
| - | ; be achieved by adding more user-definable variables. | ||
| - | ; | ||
| - | ; | ||
| - | ; USAGE: | ||
| - | ; Sub UseSendMail.sub | ||
| - | ; Set $_mail_subject = "Your Mail Subject" | ||
| - | ; | ||
| - | ; Set $_mail.msgtype = " | ||
| - | ; Set $_mail.msgstrlist = <some stringlist cmd> | ||
| - | ; or | ||
| - | ; Set $_mail.msgtype = " | ||
| - | ; Set $_mail.msgstring = " | ||
| - | ; or | ||
| - | ; Set $_mail.msgtype = " | ||
| - | ; Set $_mail.msgfile = " | ||
| - | ; | ||
| - | ; Sub_SendMail | ||
| - | ; | ||
| - | ; | ||
| - | ; HISTORY: 10-JAN-2014: | ||
| - | ; | ||
| - | ; | ||
| - | |||
| - | include_insert " | ||
| - | include_append " | ||
| - | </ | ||
| - | |||