home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 2
/
ctrom_ii_b.zip
/
ctrom_ii_b
/
PROGRAM
/
PASCAL
/
NWTP04
/
XMESS
/
XPMAIL.PAS
< prev
Wrap
Pascal/Delphi Source File
|
1993-12-28
|
558b
|
20 lines
{$X+,B-,V-}
Program xpmail;
{ Example program for the pmail unit / NwTP 0.4 API. (c) 1994, R.Spronk }
uses nwMisc,nwBindry,pmail;
CONST MsgBodyTXTfile='a:testmsg.txt';
{ Simple program illustrating the use of the SendMailFile call. }
begin
IF NOT PmailInstalled
then begin
writeln('PMail not installed on the current server.');
halt(1);
end;
IF NOT SendMailFile('SUPERVISOR',OT_USER,
'testmessage',MsgBodyTXTfile)
then writeln('Error sending file as mail. err# :',HexStr(pmail.result,4));
end.