figure - python adds some additional information required to make your message work specifying the transmission an earlier section ("defining the parts of the envelope"describes how the envelope is used to transfer the message from one location to another the process of sending the message entails defining transmission method python actually creates the envelope for you and performs the transmissionbut you must still define the particulars of the transmission the following steps help you understand the simplest approach to transmitting message using python these steps won' result in successful transmission unless you modify them to match your setup read the "considering the smtp serversidebar for additional information use the python shell window that you opened if you followed the steps in the "defining the messagesection you should see the message that you created earlier type the following code (pressing enter after each line and pressing enter twice after the last line)import smtplib smtplib smtp('localhost'the smtplib module contains everything needed to create the message envelope and send it the first step in this process is to create connection to the smtp serverwhich you name as string in the constructor if the smtp server that you provide doesn' existthe application will fail at this pointsaying that the host actively refused the connection