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

Solutions for other phpList version 2 users
Forum rules
Please do not ask questions here, this is for Solutions you have discovered or come across.

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

Postby steepingpot » 6:06am, Tue 01 May, 2007

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.
steepingpot
phpList newbie
 
Posts: 2
Joined: 8:07pm, Mon 30 Apr, 2007

I figured it out

Postby steepingpot » 6:20am, Tue 01 May, 2007

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.
steepingpot
phpList newbie
 
Posts: 2
Joined: 8:07pm, Mon 30 Apr, 2007

Postby pd » 10:28am, Mon 08 Sep, 2008

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
pd
phpLister
 
Posts: 14
Joined: 3:19pm, Tue 03 Jun, 2008

Postby Divvy » 4:34pm, Tue 02 Dec, 2008

dont work for me :(

Any luck guys?
Divvy
phpLister
 
Posts: 13
Joined: 12:10pm, Mon 11 Oct, 2004

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

Postby unionroom » 1:38pm, Mon 11 Jan, 2010

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.
unionroom
phpList newbie
 
Posts: 1
Joined: 1:27pm, Mon 11 Jan, 2010

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

Postby sneaky » 8:20am, Thu 08 Jul, 2010

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.
sneaky
phpList newbie
 
Posts: 1
Joined: 10:53am, Fri 02 Jul, 2010

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

Postby kaon » 10:34am, Thu 07 Mar, 2013

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.
kaon
PL Nut
 
Posts: 36
Joined: 7:18am, Fri 23 Dec, 2005

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

Postby traciallen » 6:10am, Mon 01 Apr, 2013

Thanks guys!!....looking for the same...thx for the help!
traciallen
phpList newbie
 
Posts: 1
Joined: 6:06am, Mon 01 Apr, 2013

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

Postby AlanGeorge » 8:01am, Mon 01 Apr, 2013

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
AlanGeorge
PL Geek
 
Posts: 97
Joined: 7:14pm, Tue 28 Feb, 2012

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

Postby emekau2002 » 4:00pm, Mon 01 Dec, 2014

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
emekau2002
phpList newbie
 
Posts: 4
Joined: 6:03pm, Thu 23 Oct, 2014


Return to Answers, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 3 guests