|
|
Visits:
3322
(23 on line)
|
Last Update: Dec 21, 2003
|
|
|
|
| | |
| Description Inheritance Example Properties Methods |
| |
| Description |
The non visual TBlatMail5 Object uses a Windows console utility called Blat to send E-mails via SMTP.
You can attach one or more files to your Emails. This object requires the Blat 1.9.4 DLL utility (found at
http://www.geocities.com/toby_korn/blat) which is delivered with APL+Win Objects™ 6.0
Blat Documentation
------------------
Blat v1.8.9: WinNT/95 console utility to mail a file via SMTP
by P.Mendes, M.Neal, G.Vollant, T. Charron
http://www.blat.net
syntax:
Blat <filename> -to <recipient> [optional switches (see below)]
Blat -install <server addr> <sender's addr> [<try>[<port>[<profile>]]] [-q]
Blat -profile [-delete | "<default>"] [profile1] [profileN] [-q]
Blat -h [-q]
-install <server addr> <sender's addr> [<try n times> [<port> [<profile>]]]
: set's SMTP server, sender, number of tries and port for profile
(<try n times> and <port> may be replaced by '-').
<filename> : file with the message body ('-' for console input, end with ^Z)
-to <recipient> : recipient list (also -t) (comma separated)
-tf <recipient> : recipient list filename
-subject <subj>: subject line (also -s)
-f <sender> : overrides the default sender address (must be known to server)
-i <addr> : a 'From:' address, not necessarily known to the SMTP server.
-cc <recipient>: carbon copy recipient list (also -c) (comma separated)
-cf <file> : cc recipient list filename
-bcc <recipient>: blind carbon copy recipient list (also -bcc) (comma separated)
-bf <file> : bcc recipient list filename
-organization <organization>: Organization field (also -o and -org)
-body <text> : Message body
-x <X-Header: detail>: Custom 'X-' header. eg: -x "X-INFO: Blat is Great!"
-r : Request return receipt.
-d : Request disposition notification.
-h : displays this help.
-q : supresses *all* output.
-debug : Echoes server communications to screen (disables '-q'). |
| Description Inheritance Example Properties Methods |
| |
| Inheritance |
Inherits from: TObject5 |
| Description Inheritance Example Properties Methods |
| |
| Example |
| |
'blat'Świ'*Create' 'TBlatMail5'
'c:\filebody.txt'Śncreate Ż19876
(1000˝'This is a file attached to a message sent by TBlatMail5',Śtcnl)Śnappend Ż19876
Śnuntie Ż19876
'blat'Świ'to' 'eric@lescasse.com'
'blat'Świ'sender' 'LESCASSE,Eric'
'blat'Świ'subject' 'Test'
'blat'Świ'body'('This is a test message',Śtcnl,'sent under program control by the TBlatMail5 object!')
'blat'Świ'Send'
0
Śdl 1
'c:\filebody.txt'Śntie Ż19876
'c:\filebody.txt'Śnerase Ż19876
|
| |
| Description Inheritance Example Properties Methods |
| |
| Properties |
| |
|
| attach |
Description: Specify which files should be attached to the E-mail |
| bcc |
Description: Specify the list of E-mail addresses to be in the Blind Copy list |
| body |
Description: Specify the E-mail body content |
| cc |
Description: Specify the list of E-mail addresses to be in the CC list |
| class |
Description: Return current object class
Syntax: class„'obj' Świ 'class' |
| help |
Example:
0 0˝'blat' Świ '*Create' 'TBlatMail5'
'c:\filebody.txt' Śncreate Ż19876
(1000˝'This is a file attached to a message sent by TBlatMail5',Śtcnl)Śnappend Ż19876
Śnuntie Ż19876
'blat' Świ 'to' 'eric@lescasse.com'
'blat' Świ 'sender' 'LESCASSE,Eric'
'blat' Świ 'subject' 'Test'
'blat' Świ 'body' ('This is a test message',Śtcnl,'sent under program control by the TBlatMail5 object!')
'blat' Świ 'Send'
0 0˝Śdl 1
'c:\filebody.txt' Śntie Ż19876
'c:\filebody.txt' Śnerase Ż19876 |
| sender |
Description: Specify the sender name |
| subject |
Description: Specify the Email subject |
| to |
Description: Specify the recipent(s) address(es) |
|
| Description Inheritance Example Properties Methods |
| |
| Methods |
| |
|
| Install |
Description: Syntax: rc„'obj' Świ 'Install'smtpserveraddress sendersaddress {tryNtimes}
smtpserveraddress: examples: smtpapp.tf1.fr or smtp.easynet.fr
senderaddress: examples: automate_mail
tryNtimes: examples: 3
rc: 0 if success
Example: 'blat' Świ 'Install' 'smtp.easynet.fr' 'eric@lescasse.com' 3 |
| New |
Description: Create a new instance of TBlatMail5
Example:
'obj' Świ '*Create' 'TBlatMail5'
|
|
| Description Inheritance Example Properties Methods |
| |
|