This commit is contained in:
Kovid Goyal 2011-06-10 09:06:33 -06:00
parent 74162b6b60
commit fcab57c402

View File

@ -202,6 +202,10 @@ def main(args=sys.argv):
if len(args) > 1: if len(args) > 1:
if len(args) < 4:
print ('You must specify the from address, to address and body text'
' on the command line')
return 1
msg = compose_mail(args[1], args[2], args[3], subject=opts.subject, msg = compose_mail(args[1], args[2], args[3], subject=opts.subject,
attachment=opts.attachment) attachment=opts.attachment)
from_, to = args[1:3] from_, to = args[1:3]