Re: SMTPlib inside function, extra tab

2008-10-08 Thread Hunter
Thank you Tino. I appreciate the help. Duh! Anything inside is preformatted text. I have tabs inside my preformatted text (without even thinking because it looks more normal because of the indent). I removed them and voila! def send_mail(fromaddress,tolist,msgsubj,messagebody):

SMTPlib inside function, extra tab

2008-10-07 Thread Hunter
I am writing a script that needs to send some emails. And I've used smtplib in the past and it is pretty easy. But I thought, gee it would be easier if I could just call it as a function, passing the from, to, subject, and message text. So I wrote it up as a function and it sort of works, but I

Re: SMTPlib inside function, extra tab

2008-10-07 Thread Tino Wildenhain
Hunter wrote: I am writing a script that needs to send some emails. And I've used smtplib in the past and it is pretty easy. But I thought, gee it would be easier if I could just call it as a function, passing the from, to, subject, and message text. So I wrote it up as a function and it sort