home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Extra 1997 #5
/
AmigaPlus_Extra-CD_5-97.iso
/
online-tools
/
mail
/
netmail
/
drivers
/
sendmail.mailput
< prev
next >
Wrap
Text File
|
1995-09-30
|
770b
|
30 lines
/*
** $VER: SendMail.mailput 1.2 (30.9.95)
** Copyright (c) 1995 Riccardo Solmi
**
*/
OPTIONS RESULTS
OPTIONS FAILAT 21
PARSE ARG email, host, msg
cmd = 'UUCP:c/SendMail'
IF ~EXISTS(cmd) THEN DO
cmd = GetVar('NetMail/SendMailCmd')
IF cmd = 0 | ~EXISTS(cmd) THEN DO
ADDRESS COMMAND 'SetEnv NetMail/SendMailCmd `Which "SendMail"`'
cmd = GetVar('NetMail/SendMailCmd')
IF cmd = 0 THEN DO
ADDRESS COMMAND 'SetEnv NetMail/SendMailCmd `RequestFile Title "Select SendMail command" Noicons`'
cmd = GetVar('NetMail/SendMailCmd')
IF cmd = 0 | ~EXISTS(cmd) THEN RETURN 2
ADDRESS COMMAND 'Copy QUIET ENV:NetMail/SendMailCmd ENVARC:NetMail/SendMailCmd'
END
END
END
ADDRESS COMMAND '"'cmd'" <"'msg'"'
RETURN RC