This piece of code is pretty simple. We just define our SMTP server’s URL and port and assign it to a variable called server. Afterwards, the email variable is set to the filename of the email message in the same directory as the script. Contained in this text file will be the headers and body of the outgoing email. We then assign the msg variable to the contents of of the email.txt file. What the MIMEText() function essentially does to the contents of email.txt is parse the file for the correct headers and body of the email we’re going to send out. Since we define all of our senders and recipients in the python code, the email.txt file will only contain the contents of the email body, but we use the MIMEText() method to assign the contents to the correct dictionary value.
We then close the file and then assign the sender and recipients, and subject line for the email by assigning it to the msg dictionary values.
Creating the PJSUA library instance
# Create library instance
endpoint security 64 bit endpoint security 10 product guide