Re: [Tutor] Insert time into email

2014-10-22 Thread Albert-Jan Roskam
On Mon, Oct 20, 2014 6:02 PM CEST Chris “Kwpolska” Warrick wrote: >On Mon, Oct 20, 2014 at 2:34 PM, Bo Morris wrote: >> hello all, hope everyone is doing well. >> >> The below code works, however I am going back and trying to enter the time >> and date and I cant qui

[Tutor] Insert time into email...final code

2014-10-22 Thread Bo Morris
Just in case anyone else can benefit from this, here is my working code up to this point #!/usr/bin/python import smtplib from email.MIMEMultipart import MIMEMultipart from email.MIMEText import MIMEText from email.MIMEImage import MIMEImage import time strFrom = "HourlyReport.com" strTo = "mye

Re: [Tutor] Insert time into email

2014-10-20 Thread Crush
Hey thanks for the help, it worked like a charm. I will post the complete code soon, so others may benefit should they ever need it. Thanks again. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.pyth

Re: [Tutor] Insert time into email

2014-10-20 Thread Chris “Kwpolska” Warrick
Forwarding to list — please use Reply All… next time. On Mon, Oct 20, 2014 at 6:28 PM, Crush wrote: > Where does the ."format(time=t,date=d)" go? > > I would assume something like > > msgTime = MIMEText() > msgTime.add_header('not sure what to put here?' '' .format(time=t)) > msgRoot.attach(msgTi

Re: [Tutor] Insert time into email

2014-10-20 Thread Chris “Kwpolska” Warrick
On Mon, Oct 20, 2014 at 2:34 PM, Bo Morris wrote: > hello all, hope everyone is doing well. > > The below code works, however I am going back and trying to enter the time > and date and I cant quite figure out how to do this without breaking the > code. > > #!/usr/bin/python > > import smtplib > f

[Tutor] Insert time into email

2014-10-20 Thread Bo Morris
hello all, hope everyone is doing well. The below code works, however I am going back and trying to enter the time and date and I cant quite figure out how to do this without breaking the code. #!/usr/bin/python import smtplib from email.MIMEMultipart import MIMEMultipart from email.MIMEText imp