mail = olook.CreateItem(win32.constants.olMailItem) recip = mail.Recipients.Add('you@127.0.0.1') subj = mail.Subject = 'Python-to-%s Demo' % app body = ["Line %d" % i for i in RANGE] body.insert(0, '%srn' % subj) body.append("rnTh-th-th-that's all folks!") mail.Body = 'rn'.join(body) mail.Send()