AutomateTheBoringStuff.Ch16 package

Submodules

AutomateTheBoringStuff.Ch16.P1_sendingEmail module

Sending email

This program uses smtplib to send emails.

Notes

  • smtp_info file has each item on a separate line.
  • Email address used is specially created for this chapter.
  • Use input() for password to prevent storing in unencrypted file.
AutomateTheBoringStuff.Ch16.P1_sendingEmail.main()[source]

AutomateTheBoringStuff.Ch16.P2_receivingEmail module

Receiving email

This program uses imapclient.IMAPClient and pyzmail36 to retrieve emails.

Notes

  • imap_info file has each item on a separate line.
  • Email address used is specially created for this chapter.
  • Use input() for password to prevent storing in unencrypted file.
AutomateTheBoringStuff.Ch16.P2_receivingEmail.main()[source]

AutomateTheBoringStuff.Ch16.P3_sendDuesReminders module

Send dues reminders

Sends emails based on payment status in spreadsheet.

Notes

  • smtp_info file has each item on a separate line.
  • Email address used is specially created for this chapter.
  • Use input() or sys.argv[1] for password to prevent storing in unencrypted file.
AutomateTheBoringStuff.Ch16.P3_sendDuesReminders.main()[source]

AutomateTheBoringStuff.Ch16.P4_sendSMS module

Send SMS

This program uses twilio to send SMS messages to a phone number.

Note

  • twilio_info file has each item on a separate line.
  • Use input() to prevent storing sensitive info in unencrypted file.
AutomateTheBoringStuff.Ch16.P4_sendSMS.main()[source]

AutomateTheBoringStuff.Ch16.P5_textMyself module

P5_textMyself.py

Defines textmyself() that texts a string message passed to it.

Note

  • twilio_info file has each item on a separate line.
  • Use input() to prevent storing sensitive info in unencrypted file.
AutomateTheBoringStuff.Ch16.P5_textMyself.textmyself(message: str) → None[source]

Text myself

Sends given message as SMS to twilio account specified in ./twilio_info.

Parameters:message – String containing message to be sent.
Returns:None. Message is sent to twilio phone number.

Module contents