PHP ActiveX Requires Chilkat v11.0.0+
PHP ActiveX
Set the display priority of a message
See more Email Object Examples
Set X-Priority to 1 (high), 3 (normal), or 5 (low). A mail reader can use it as a display hint. SMTP delivery order is controlled by the mail system.
Chilkat PHP ActiveX Downloads
<?php
$success = 0;
// Assumes Chilkat is unlocked. See Global Unlock Sample.
$email = new COM("Chilkat.Email");
$email->From = 'Workshop team <events@example.com>';
$success = $email->AddTo('Alex Rivera','alex@example.net');
if ($success != 1) {
print $email->LastErrorText . "\n";
exit;
}
$email->Subject = 'Workshop venue change';
$email->Body = 'Please use the north entrance.';
$email->AddHeaderField('X-Priority','1 (High)');
print 'Priority: ' . $email->getHeaderField('X-Priority') . "\n";
$success = $email->SaveEml('venue-change.eml');
if ($success != 1) {
print $email->LastErrorText . "\n";
exit;
}
print 'Saved venue-change.eml.' . "\n";
?>