Wednesday, September 14, 2011

python email dates

When using Python to send email, you may find that you need to set the Date: field. This task is made trivial with the standard module email.utils. The following will likely be what you want:

email.utils.formatdate(localtime=True)

No comments:

Post a Comment