Emailing an excel sheet with SSL in Python

Posted by jakecar on Stack Overflow See other posts from Stack Overflow or by jakecar
Published on 2010-05-17T02:11:03Z Indexed on 2010/05/17 2:20 UTC
Read the original article Hit count: 258

Filed under:
|
|
|

Hi...this is my first post so let me know if there are any common courtesies I should know about.

I just started programming 8 months ago, so I am fairly new. I have been doing some projects to get better. A project I'm working on now creates an Excel sheet from inputted data. It's in Python, which I just started learning a couple of weeks ago. I'm attempting to embed part of this Excel sheet into an email, sent from my school address. I have spent hours looking this up, and to no avail.

There are two problems I am asking for help with:

1) I have figured out how to send an email from my GMail account, but not from my school address. My school email uses SSL port 465, which I have tried to use, but to no avail. Unfortunately, I have been having a problem setting up outgoing email for this account on my iPhone as well. It may be related? Does anyone know of common issues relating to outgoing email with SSL and Python?

2) Excel has an option of saving a sheet as a HTML. When doing so, I copy and pasted the HTML source and emailed it as an attachment. Unfortunately, the colored text did not transfer over. Does anyone know of a better way of using Python to send an excel sheet embedded in an email?

Thanks for your help!

© Stack Overflow or respective owner

Related posts about python

Related posts about email