Logged In: YES
user_id=12800
I don't believe it. I use smtplib all the time to send
messages to Mailman addresses that contain hyphens and I've
never seen a problem, going back to Python 1.5.2 and up to
Python 2.3(cvs).
Note that as far as the SMTP protocol is concerned, and
smtplib as well, the body of the message which contains the
To: header, really isn't part of the SMTP dialog. The
envelope sender and recipients are the important determining
factors in where the message goes and where the message
comes from. These are the first two arguments to
.sendmail(). The body of the message -- including the
headers -- is spit right out to the SMTP server, after
canonicalizing stuff like line endings as per the RFC.
Much more likely is that your MTA -- i.e. the thing you're
connected to (your SMTP server) -- is munging things.
If you can explain more about your environment, I might be
able to help. You should also attach a .py file that
exactly reproduces your problem and I will test it with my MTA.
|