type sendmail('senderaddress'['recipientaddress']msg as_string)and press enter in order for this step to workyou must replace senderaddress and recipientaddress with real addresses don' include the humanreadable form this time -the server requires only an address this is the step that actually creates the envelopepackages the -mail messageand sends it off to the recipient notice that you specify the sender and recipient information separately from the messagewhich the smtp server doesn' read close the python shell considering the message subtypes the "defining the messagesectionearlier in this describes the major -mail message typessuch as application and text howeverif -mail had to rely on just those typestransmitting coherent messages to anyone would be difficult the problem is that the type of information isn' explicit enough if you send someone text messageyou need to know what sort of text it is before you can process itand guessing just isn' good idea text message could be formatted as plain textor it might actually be an html page you wouldn' know from just seeing the typeso messages require subtype the type is text and the subtype is html when you send an html page to someone the type and subtype are separated by forward slashso you' see text/html if you looked at the message theoreticallythe number of subtypes is unlimited as long as the platform has handler defined for that subtype howeverthe reality is that everyone needs to agree on the subtypes or there won' be handler (unless you're talking about custom application for which the two parties have agreed to custom subtype in advancewith this in mindyou can find listing of standard types and subtypes at html the nice thing about the table on this site is that it provides you with common file extension associated with the subtype and reference to obtain additional information about it creating the -mail message so faryou've seen how both the envelope and the message work now it' time to put them together and see how they actually work the following sections show how to create two messages the first message is plain-text message and the second message uses html formatting both messages should work fine with most -mail readers -nothing fancy is involved