Page 1 of 1

[solved] Reply-to header missing - Flags as Spam on Gmail

PostPosted: 6:06am, Tue 01 May, 2007
by steepingpot
Gmail is flagging all the emails sent from PHP List as spam because there is no "Reply-To" set in the header. Is there a way to fix this for all messages? Everything can be set as the same thing, since I'm only using PHP List for one purpose. I'm not the best with PHP, so if someone could give me something I could copy and paste I'd really appreciate it.

I figured it out

PostPosted: 6:20am, Tue 01 May, 2007
by steepingpot
Nevermind - I waited all day to post this message, and then as soon as I do, I fix the problem. If you do a find for "-f" in the class.phpmailer.php file, all you have to do is change the Sender variable to equal the email address you want as the Return-path or Reply-To in the header. So the code will be var $Sender = "name@domain.com";. This code is on line 74 in Dreamweaver.

PostPosted: 10:28am, Mon 08 Sep, 2008
by pd
Thanks for this one. I have been searching for this a long time.

To the developers though: isn't there an easier way to do this? Why not via the interface some way? This is insane. I know this is going to go wrong whenever I am going to copy this folder some time for another project. I WILL forget to change the $Sender variable...

Gr,
Paul

PostPosted: 4:34pm, Tue 02 Dec, 2008
by Divvy
dont work for me :(

Any luck guys?

Re: [solved] Reply-to header missing - Flags as Spam on Gmail

PostPosted: 1:38pm, Mon 11 Jan, 2010
by unionroom
Hi Guys.

I know this is an old thread but it was the first one that came up on Google when I searched so I thought I'd post my solution.
It has to be hard coded in which isn't ideal as you'll have to change it in the code each time you send.

Open file admin/class.phplistmailer.php.

Above the following line (Around line 119 somewhere):

Code: Select all
if(!parent::Send()) {


Add in the following:

Code: Select all
$this->AddReplyTo('someone@someone.com', 'Some Person');


Hope this helps someone having the same problem we had.

Re: [solved] Reply-to header missing - Flags as Spam on Gmail

PostPosted: 8:20am, Thu 08 Jul, 2010
by sneaky
Thanks unionroom

works just fine :D phplist v. 2.10.12

But i think that the devs should add a Reply-to at send message to be more easier if you want to use different mail each time.

Re: [solved] Reply-to header missing - Flags as Spam on Gmai

PostPosted: 10:34am, Thu 07 Mar, 2013
by kaon
unionroom wrote:Hi Guys.

I know this is an old thread but it was the first one that came up on Google when I searched so I thought I'd post my solution.
It has to be hard coded in which isn't ideal as you'll have to change it in the code each time you send.

Open file admin/class.phplistmailer.php.

Above the following line (Around line 119 somewhere):

Code: Select all
if(!parent::Send()) {


Add in the following:

Code: Select all
$this->AddReplyTo('someone@someone.com', 'Some Person');


Hope this helps someone having the same problem we had.

This worked for me. Thank you.

Re: [solved] Reply-to header missing - Flags as Spam on Gmai

PostPosted: 6:10am, Mon 01 Apr, 2013
by traciallen
Thanks guys!!....looking for the same...thx for the help!

Re: [solved] Reply-to header missing - Flags as Spam on Gmai

PostPosted: 8:01am, Mon 01 Apr, 2013
by AlanGeorge
Have you checked out this posting on the forum.....

http://forums.phplist.com/viewtopic.php?f=10&t=38916

which will take you to....

http://www.alangeorge-photography.com/listCode_008.php

which will sort out the headers for Precendance Bulk, Reply To and UnSubscribe. Options configured and toggable (new word) from the config.php file....

regards

Alan

Re: [solved] Reply-to header missing - Flags as Spam on Gmai

PostPosted: 4:00pm, Mon 01 Dec, 2014
by emekau2002
unionroom wrote:Hi Guys.

I know this is an old thread but it was the first one that came up on Google when I searched so I thought I'd post my solution.
It has to be hard coded in which isn't ideal as you'll have to change it in the code each time you send.

Open file admin/class.phplistmailer.php.

Above the following line (Around line 119 somewhere):

Code: Select all
if(!parent::Send()) {


Add in the following:

Code: Select all
$this->AddReplyTo('someone@someone.com', 'Some Person');


Hope this helps someone having the same problem we had.



works perfectly thanks