host="localhost"port= headers=none)headers {if headers is none else headers if we have our debugging smtp server running in one terminalwe can test this code in python interpretersend_email(" model subject""the message contents""from@example com""to @example com""to @example com"thenif we check the output from the debugging smtp serverwe get the followingmessage follows content-typetext/plaincharset="us-asciimime-version content-transfer-encoding bit subjecta model subject fromfrom@example com toto @example com -peer the message contents end message message follows content-typetext/plaincharset="us-asciimime-version content-transfer-encoding bit subjecta model subject fromfrom@example com toto @example com -peer the message contents end message