Cosmosim smtplib features

Adding optional email/text alerting of a cosmosim query's completion status.
Just to check: `jobid==0` is not a valid job ID, right?  If it is, `not jobid` would be a problem.