Sending e-mail following completion of python script

Discussion created by billbass on Oct 20, 2011
Latest reply on Nov 30, 2011 by ScottB
I have a rather long python scripting process that runs several hours. I would like to code into the script something that allows an e-mail message to be sent to me at the end of the program. I'm not looking to have any errors or logging sent, just a simple e-mail sent such as, 'The program has finished.' It would be the final step in the python program.

I have looked on and tried a couple of examples, but nothing seems to work.