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