From Email is Auto Replaced by $phpmailer_smtpuser Value

I have set following variables

define(‘PHPMAILERHOST’, ‘’);
$phpmailer_smtpuser = ‘’;
$phpmailer_smtppassword = ‘usayed2005’;


Whatever From Email I define in Campaign. It is automatically replaced by the SmtpUser value.

Even Reply-To tag is also set to smtpuser value.

Any Ideas how to handle it.

This is a feature of the mail server, not phplist. you would need to ask of there is a way to modify the settings on the mail server.

Thanks danwaterloo.

My host said that for security reason they rewrite the From Header to Match with Sender.

Any how is there any way to define a separate Reply-To Address in phpList for each campaign.


There is no way to add a Reply-To address from the web interface, as it exists today.

Is the email address that you use for From an existing email address on the same domain, ?

Yes it is the email on the same domain.

Like I tried but it was replaced by

My host said the From Header is always set to the Sender (SMTP Auth Email) for security reasons.

Can you please tell where in the Code shall I add the Reply-To header to reflect in Email.

My host doesn’t over write the Reply-To header. So If I can add my To Address in Reply-To header then my problem would be 80% Solved. The headers will show something like below.

from: Shams
reply-to: Shams
to: Faisal Ayub
date: Sat, Nov 26, 2016 at 3:37 PM
subject: Here is the subject
encryption: Standard (TLS) Learn more

Your response is highly appreciated.

@boxygen This code change will let you set the reply-to address to the from address.
In file admin/phplistmailer.php

line 291 should be

        if (!parent::Send()) {

Add this line immediately before

$this->AddReplyTo($this->From, $this->FromName);

:smile: That worked like a charm for me.

Thanks Duncan