How to make envelope adress same as from adrress from capaign instead of admin email id

Hello everyone,

I’m facing an issue with sending email campaigns using our application. The problem is that, despite specifying different “from” addresses for each campaign, all the emails are being sent with the same envelope address—specifically, the admin email address configured in the application settings.

Here’s a summary of the problem:

  • Scenario: We are trying to send campaigns with various “from” addresses by different admins
  • Expected Behavior: Each email should be sent with the corresponding “from” address as the envelope address.
  • Actual Behavior: All emails are sent with the admin email address as the envelope address, regardless of the “from” address specified.

What I’ve Tried:

  1. Checked the application settings to ensure that the envelope address is not hardcoded.
  2. Verified that the “from” address is correctly set for each campaign.
  3. Reviewed the documentation and configuration files related to email sending.

Questions:

  • Has anyone else encountered this issue or a similar one?
  • Are there any configuration settings or code adjustments I might have missed that could affect the envelope address?

Any insights or solutions would be greatly appreciated!

Thanks in advance for your help

@shahidmm You can set $message_envelope in the config.php file. See the config_extended.php file for an explanation.

Ah sorry, just realised that is what you do not want to happen.

The $message_envelope address is where bounces go to. if it is the same as the From address then bounces will go to the person sending the campaign and will be difficult to automate bounce processing.

phplist sets the $message_envelope address to the “person in charge” address from the Settings page if it is not set in config.php so I don’t think that it supports what you want to do.

A plugin is able to over-ride the address and set it to the From address, if you are a php developer.