I am trying to use Python smtplib to set email priority to high. I have successfully used this library to send emails, but I'm not sure how to get priority.
import smtplib from smtplib import SMTP
My first attempt was to use this to research how to set priority:
smtp.sendmail(from_addr, to_addr, msg, priority ="high")
However, I received an error message: keyword priority is not recognized.
I also tried using:
msg['X-MSMail-Priority'] = 'High'
However, I get one more error. Is there a way to set priority using only smtplib?
source share