2021 Sep 23, 04:12 PM
(2021 Sep 23, 02:25 PM)dan Wrote: Looks like the Encoders import should be:
that is deprecated in Python3, see:Code:from email import encoders
https://docs.python.org/3/library/email.encoders.html
You also need to change
# from email.MIMEMultipart import MIMEMultipart
# from email.MIMEBase import MIMEBase
# from email.MIMEText import MIMEText
to
from email.mime.multipart import MIMEMultipart
from email.mime.base import MIMEBase
from email.mime.text import MIMEText
Dan
Thanks Dan,
I tried your changes and the plugin now loads properly.
Unfortunately I failed the send-email test, with this message appearing in the status box:
"Email was not sent! E-mail plug-in is not properly configured!"
I checked my gmail setup by following this link below to check against 3 possible errors:
- Incorrect login information is being used.
- The Post Office Protocol (POP) and Internet Message Access Protocol (IMAP) access is not enabled for the mail account.
- The POP/IMAP account access is locked.
My login credential is correct. I have to set up POP/IMAP and make sure it is not locked. Still, I can't pass the send-email test.
At this point, I am not sure if the problem is with my gmail account setup or with the plugin setup.
Manually run "sudo python3 sip.py" indicates the plugin now starts fine:
"Email plugin is started"
-- which is progress.
Regards,
paul