Setting the Return-Path: (Bounce) Address

The Return-Path: address specifies where bounce notifications should be sent and is set with the setReturnPath() method of the message.

You can only have one Return-Path: and it must not include a personal name.

To set the Return-Path: address:

Call the setReturnPath() method on the Message.

Bouce notifications will be sent to this address.

$message->setReturnPath('bounces@address.tld');

NOTE: Documentation for version 3 is in the wiki.