Ability to to send email from hub tool
Hi, I’d like to request a way for a hub tool (app) to send an email message.
This wish is based on a specific feature request for a current hub tool, SubmitR. The tool allows users to initiate long running processes. The user can then log off the hub while their tool session continues to run. Users would like to be notified via email when the long-running process has completed. This seems like it could be a commonly requested feature in other tools – especially ones that create long running jobs.
Here’s the requirements I can see: – Able to programmatically (via code – library call or spawned process) send email message. I’m guessing enabling some command line method like “sendmail” would be easiest. A command line interface is ok with me. – Able to generate email message from tools written in various languages (Python, Java, etc.) That is, please make the solution language agnostic. – Independently initiated, i.e. not tied to another hub service. For example, adding an email option to the “submit” command would not allow the app to perform additional work after “submit” returns and before the email is sent. However if the app does a separate call like “submit…-email…” just to send the message, I guess that would be ok.
Also, its ok with me if some sort of limit was needed to prevent abuse. For example, if the number of email recipients was limited to a small number. Or, if the email always came from a specific, generic hub address (I can put “SubmitR: Job ABC started on XYZ has completed…” in the email subject line.) However, SubmitR already has users outside of Purdue. So, I think limiting recipients to the purdue.edu domain isn’t a good thing.
I tried using /bin/sbin/sendmail on diagrid.org. But I got the following:
2013-01-31 14:54:06 1U10D0-0000DF-Cs Cannot open main log file “/var/log/exim4/mainlog”: Permission denied: euid=106 egid=113 2013-01-31 14:54:06 1U10D0-0000DF-Cs