I am trying to use Python's smtplib
to set the priority of an email to high. I have successfully used this library to send email, but am unsure how to get the priority working.
import smtplib
from smtplib import SMTP
My first attempt was to use this from researching how to set the priority:
smtp.sendmail(from_addr, to_addr, msg, priority ="high")
However I got an error: keyword priority is not recognized.
I have also tried using:
msg['X-MSMail-Priority'] = 'High'
However I get another error. Is there any way to set the priority using only smtplib?