2012-05-26 3 views

답변

21

아웃 바운드 전자 메일에 중요도 및 우선 순위 헤더를 추가하면됩니다. MS Outlook은 자체의 특정 메일 클라이언트를 사용하지만 대부분의 다른 메일 클라이언트는 Importance 또는 Priority입니다. AddCustomHeader() 메서드와 $Priority 속성을 통해 PHPMailer로 추가하십시오. 메일 클라이언트 구현하지 무료입니다

// For most clients expecting the Priority header: 
// 1 = High, 2 = Medium, 3 = Low 
$yourMessage->Priority = 1; 
// MS Outlook custom header 
// May set to "Urgent" or "Highest" rather than "High" 
$yourMessage->AddCustomHeader("X-MSMail-Priority: High"); 
// Not sure if Priority will also set the Importance header: 
$yourMessage->AddCustomHeader("Importance: High"); 

주 /이 헤더를 무시, 그래서 당신은 완전히 그들에 의존 할 수 없다. 또한 많은 스팸 필터는 스팸을 식별하는 데 적색 플래그로 사용합니다. 주의해서 사용하십시오.

공식 문서 :

PHPMailer Properties

PHPMailer Methods

0

보충 : 잘 work's 있지만, 일부 스팸 필터 (나던 문제를 우선 순위 구성을 사용합니다

하는 우선 순위가 설정 됨) 스팸을 필터링합니다.

그리고 php 메일러는 우선 순위 플래그를 항상 설정합니다. (3 기본값) MY PHP는 메일러 클래스 낫다고 생각의 commentet에 따라서

라인

$this->HeaderLine('X-Priority', $this->Priority);

어쩌면 같은 솔루션 :

class.phpmailer.php

if($this->Priority > 0) $this->HeaderLine('X-Priority', $this->Priority);

그리고 같은 당신의 PHP 스크립트의 뭔가 :

$yourMessage->Priority = 0;

구성 비트 만든다