value if the smtp server reported an error sending that particular email the last part of the for loop at checks if the returned dictionary is nonempty andif it isprints the recipient' email address and the returned dictionary after the program is done sending all the emailsthe quit(method is called to disconnect from the smtp server when you run the programthe output will look something like thissending email to alice@example com sending email to bob@example com sending email to eve@example com the recipients will receive an email about their missed payments that looks just like an email you would have sent manually sending text messages with sms email gateways people are more likely to be near their smartphones than their computersso text messages are often more immediate and reliable way of sending notifications than email alsotext messages are usually shortermaking it more likely that person will get around to reading them the easiestthough not most reliableway to send text messages is by using an sms (short message serviceemail gatewayan email server that cell phone provider set up to receive text via email and then forward to the recipient as text message you can write program to send these emails using the ezgmail or smtplib modules the phone number and phone company' email server make up the recipient email address the subject and body of the email will be the body of the text message for exampleto send text to the phone number which is owned by verizon customeryou would send an email to @vtext com you can find the sms email gateway for cell phone provider by doing web search for "sms email gateway provider name,but table - lists the gateways for several popular providers many providers have separate email servers for sms which limits messages to charactersand mms (multimedia messaging service)which has no character limit if you wanted to send photoyou would have to use the mms gateway and attach the file to the email if you don' know the recipient' cell phone provideryou can try using carrier lookup sitewhich should provide phone number' carrier the best way to find these sites is by searching the web for "find cell phone provider for number many of these sites will let you look up numbers for free (though will charge you if you need to look up hundreds or thousands of phone numbers through their apisending email and text messages