pdf_mail module is that library of Python which helps you to send pdf documents through your Gmail account.
This module does not come built-in with Python. You need to install it externally. To install this module type the below command in the terminal.
pip install pdf-mail
Function of pdf_mail
This module only comes with a single functionality of sending mail from one account to another. The function used to do the same is –
- email_send():: It will send the pdf document from your Gmail account to another Gmail account .
- It should be noted that the address_of_file must contain forward slash (/) .
- You have to update the google account settings for sending a email .
account.google.com -> less secure apps -> Turn on access .
Below is the implementation.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course. And to begin with your Machine Learning Journey, join the Machine Learning – Basic Level Course