Monday, May 13, 2013

Difference between Reply-to and Return-path in the headers of a mail function.


Reply-to is the address where the email needs to be delivered.
Return-path - specifies the address In case of a failed delivery
$headers .= "Reply-To: info@info.com\r\n";
$headers .= "Return-Path: info@info.com\r\n";


 Reply-to is the id of the user to whom this mail is sent. Where as the Return-path is when the delivery failure occurs, then where to deliver the failure message.

No comments:

Post a Comment