2013-07-12 2 views

답변

2

, 당신은 -f 명령을 사용하여 주소에서 봉투를 설정할 수 있습니다, 당신은뿐만 아니라, 그래서 같은 메시지 헤더의 주소에서를 포함 할 수 있습니다 :

$to = "[email protected]"; 
    $from = "[email protected]"; 
    $subject = "subject"; 
    $message = "this is the message body"; 

    $headers = "From: $from"; 
    $ok = @mail($to, $subject, $message, $headers, "-f " . $from); 
+0

감사합니다. 이것은 훌륭하게 작동했습니다. – John