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):
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
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