Re: help tranlating perl expressions

2006-09-28 Thread \"Erik Johnson\" wellkeeper dot
"David Bear" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > my $klen = length($key); > my $blen = 64; > my $ipad = chr(0x36)x$blen; > my $opad = chr(0x5c)x$blen; > > I don't know if I ever seen any way in python of created a fixed size > string. Can anyone show me how to implem

using the email module

2006-09-28 Thread \&quot;Erik Johnson\" wellkeeper dot
THE GOAL: I need to send an email with a simple ASCII text body and an attached HTML file. I have scripts that send basic emails via the smtplib module that don't have any attachements and that seems to work fine. I first looked at the mimetools modules but it says it is depreceated sinc