On 1 Sep 2006 03:26:12 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > How do I add a Sender name to the emails sent by the following script: >
> > writer = MimeWriter.MimeWriter(out) > # set up some basic headers... we put subject here > # because smtplib.sendmail expects it to be in the > # message body > # > writer.addheader("Subject", subject) > writer.addheader("MIME-Version", "1.0") > # add the line writer.addheader("From", a_sender_address) and you should also have writer.addheader("To", some_recipient_address(es)_as_a_string) The smtp sender & recipients do not relate to the sender & recipients in the email itself, Often they are the same, but they don't have to be. HTH :) -- http://mail.python.org/mailman/listinfo/python-list