Set Email properties for ASPdbSendMail, Upload and Edit. (DoNet 1.x)
Obj.dbMail = "From | To | SQLto| DSNto | Cc | Bcc | Subject | Body | Encoding | Format | Priority | Base | Loc | Attach | NameValue | SMTPserver | BatchSize | IgnoreError | Visual | TestRun | Lapse| trigger| NestedBody| Notify"
| Keyword | Description |
|---|---|
| From | MailObj.From address. |
| To | MailObj.To - This parameter has 4 formats -
|
| SQLto | Use this SQL query to supply the required data in - To, Subject and Body fields. All is required in these parameters (magicfield) are #fieldnumber#. Result from recordset RS(fieldnumber) will fill these macro tags. Fieldnumber is 0 based. batchsize MUST BE 0 for MagicField process. e.g. Obj.dbMail = "SMTPServer=mail.attbi.com| from=boss@fkw.us| to=#0# | SQLto=Select * From test3.Csv| Batchsize=0| Subject=#1#| IgnoreError = true | Visual = 2 | TestRun = true | Body = #2#" |
| DSNto | Data source of the "Send To" SQL query. Def=dbDSN. |
| Cc | MailObj.Cc address |
| Bcc | MailObj.Bcc address |
| Subject | Mail.Obj.Subject text. |
| Body | MailObj.Body has the following formats -
|
| Encoding | Different BodyEncoding scheme - ascii, bigendianunicode, unicode, utf7, utf8 |
| Format | 0=HTML | 1=Plain Text(Def) |
| Priority | 0=low(Def) 1=normal 2=high |
| Base | Content Base and Location are used to retrieve images files. e.g. Content Base="http://www.myserver.com/Content Location=Directory/ Images will be prefixed as - http://www.myserver.com/Dir/ImageFile.gif |
| Loc | URL Content location |
| Attach | MailObj.AttachFile -> Filename, Caption, Encode_Method; ...repeat... (Use group to delimit different attached files and field to delimit Caption and encode). Encode method defaults to UUENCODE (0). Use (1) for Base_64 encoding. Each file attached requires the above 3 parameters. Parameters cannot be skipped. Only Encode can be left as blank indicating a default of 0. If Caption file name has no extension, a 'dat' extension will be attached. e.g. Attach = e:\vdata\article\temp.asp,Tem.txt; e:\vdata\article\Stock.csv, Stock.csv,0" |
| name=Value | Send custom headers via -> HeaderName1=Value1, HeaderName2=Value2.... To obtain a reciept of the email, use -> namevalue=Disposition-Notification-To=frank@aspdb.com |
| SMTPServer | Name of SMTP server sending the mail (Def=localhost) |
| BatchSize | How many address to send at one time. This parameter has 3 cases -
|
| IgnoreError | Set to false will cause the mail sending action to quit upon an error. |
| Visual | Display the sending status. 0=No display |1=address only |2=Address and Body |
| TestRun | Does everything except sending. No lapse time in test run. (Must set this to False to execute) |
| Lapse | Sleep time in between each send. If you don't do that, your ISP will pull your plug. (Def=0) |
| Trigger | Value=Add. Triggers Email in Edit Add. For now only Edit Add and Upload. Note that 'Upload' trigger is done in the system internally. Just define dbMail in the Upload module will trigger that. Obj.dbMail = "From=Me@MyUrl.com |To=You@YourUrl.com;#2#| Subject=My Subject at (" & Now() & ")| Body=My Message body|TestRun=false| trigger=add|SMTPServer=mail.YourServer.com" |
| NestedBody | True | False(Def). Body code in field contains nested Macro. See example in Special Topics - Email. |
| Notify | Return receipt email address. Same as using Disposition-Notification-To in name=Value. |
z Class | Tornado Namespace | dbMail | dbUpload | Special Topic - Email