How can I sent an mail with phpmailer with the option urgent set like in MS Outlook?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is done by adding importance and priority headers to the outbound email. MS Outlook uses a particular one of its own, while most other mail clients use
ImportanceorPriority. Add them with PHPMailer via theAddCustomHeader()method and the$Priorityproperty.Note that mail clients are free to not implement/ignore these headers, so you can’t fully rely on them. Also, many spam filters will use them as a red flag for identifying spam. Use them with caution.
Official documentation:
PHPMailer Properties
PHPMailer Methods