PHP mail function: how to affect the Return-Path parameter
Posted on 2008-10-10
From a web-based script within a hosting account, i want to send an email from a PHP script.
Everything works fine, except the Return-Path seems to always be the system default (in the system php.ini)
How can i change this on a per user or per script basis?
I tried the suggestion From: First LastName<firstname.lastname@example.org>
which comes thru fine as the From address in the message header, but the Return-Path in the header
still says email@example.com