reply และ return path สามารถวางใน headers ได้ดังนี้:
$headers = 'From: sample@example.com' . "\r\n" . 'Reply-To: sample@example.com' . "\r\n" . 'Return-Path: sample@example.com'
มิฉะนั้น สามารถส่งเป็นพารามิเตอร์ที่ห้าเพื่อเปลี่ยน return path:
mail($to, $subject, $message, $headers, "-f email@wherever.com");
ที่นี่ 'email@wherever.com' ต้องแทนที่ด้วยอีเมลของผู้ใช้เอง