Mailing list with Python
Aim : Write a Python script to send an email to a list of customers for instance. The list is in a worksheet on Excel. Procedure : The recipient list is in an Excel file named Recipients.xlsx and has one sheet (Sheet1). The first column is LastName, The second is FirstName. The third column is the email address. For this script, we need the openpyxl library. If the library is not installed, we need to install it first. Open a DOS command and type : python –m pip install openpyxl We will also need smtplib to send mails using google servers. For this, manu solutions are possible (See https://support.google.com/a/answer/176600?hl=en ) If we use a Gmail address (or G Suite address), we can send up to 2000 mails per day. The server to use then is smtp.gmail.com. Let us begin the script : from openpyxl import load_workbook import smtplib We will start by creating some variables : myMail="MailAddress"...