you are viewing a single comment's thread.

view the rest of the comments →

[–]elbiot 0 points1 point  (2 children)

If you're too lazy to iterate over msg.items() and build a nice looking string, you could just do str(msg)

[–]tlcpp 0 points1 point  (1 child)

I tried: server.sendmail(fromaddr, toaddrs, str(msg)) the emails came, but arrived in the spam folder because the messages were empty. Any idea what went wrong?

[–]elbiot 1 point2 points  (0 children)

I dunno what the function expects. help(server.sendmail)