Add Subscribers to an On-Your-Behalf Account
Use On-Your-Behalf accounts to send messages from a central managing account. Messages that you send in this way include the From address of the On-Your-Behalf user.
When you add subscribers to an On-Your-Behalf account, messages sent from the managing account target the appropriate subscribers.
This example code creates a subscriber in an On-Your-Behalf account.