Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > SUPPORT / INFORMATION > Pixelpost Help

Post Reply
 
Thread Tools
  #1  
Old 06-25-2007, 01:33 AM
mgd711's Avatar
mgd711 Offline
pp veteran
 
Join Date: Jun 2007
Posts: 56
Send a message via MSN to mgd711 Send a message via Yahoo to mgd711 Send a message via Skype™ to mgd711
php mail

When I make a comment on my website I always get an e-mail to say that somebody has left a comment but when other people comment on my website and they fill out the e-mail address box I never get an e-mail regarding there comments however if they don't leave an e-mail address I get an e-mail.

Any suggestions on what might be wrong. I've had this same problem with PP v1.4 through to PP v1.6.


Mike
www.thefieryscotsman.com
Reply With Quote
  #2  
Old 06-25-2007, 02:32 AM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski
I or someone else will take a look into this.

I have never heard of it happening before so its all news to me

Thanks for pointing it out.
Reply With Quote
  #3  
Old 06-25-2007, 04:27 AM
mgd711's Avatar
mgd711 Offline
pp veteran
 
Join Date: Jun 2007
Posts: 56
Send a message via MSN to mgd711 Send a message via Yahoo to mgd711 Send a message via Skype™ to mgd711
Quote:
Originally Posted by dwilkinsjr View Post
I or someone else will take a look into this.

I have never heard of it happening before so its all news to me

Thanks for pointing it out.

Thanks!

I've been using PP since Feb 2006 with V1.4. I had always assumed I had done something wrong with the install so never bothered much with it. However this past weekend I deleted everything and did a fresh install of PP v1.6. Still dosen't work!............ ahh! This was one of the things I was hoping a fresh install would fix. I've e-mailed my host, Yahoo, to see if there is anything extra that needs to be set up at there end but I have already configured phpmail on my Yahoo web admin page to send mail to admin at my domain. It always works when I leave a comment though.


Mike
www.thefieryscotsman.com
Reply With Quote
  #4  
Old 06-25-2007, 04:51 AM
Dkozikowski's Avatar
Dkozikowski+ Offline
Team Pixelpost
 
Join Date: Oct 2005
Posts: 1,855
Send a message via AIM to Dkozikowski
Just to check before i go diving in the code,

your admin email address is filled out on the options page right?

if it's not the comment email function wont work.
Reply With Quote
  #5  
Old 06-25-2007, 05:25 AM
mgd711's Avatar
mgd711 Offline
pp veteran
 
Join Date: Jun 2007
Posts: 56
Send a message via MSN to mgd711 Send a message via Yahoo to mgd711 Send a message via Skype™ to mgd711
Quote:
Originally Posted by dwilkinsjr View Post
Just to check before i go diving in the code,

your admin email address is filled out on the options page right?

if it's not the comment email function wont work.
Yes, the admin e-mail is filled out in the pixelpost options section.

It beats me that it works when people don't leave an e-mail address but when they leave an e-mail address it dosen't work.

Thanks,

Mike
Reply With Quote
  #6  
Old 06-25-2007, 12:43 PM
dakwegmo's Avatar
dakwegmo+ Offline
Team Pixelpost
 
Join Date: Jul 2005
Location: West of Between
Posts: 689
mgd711 try this test, make a test comment, but use another email address on the same domain as your admin email address.

My suspicion is that sendmail is only configured to send email from addresses on your domain, or possibly only email boxes that are configured on your server. When pixelpost constructs the message it uses the commenter's email as the from address if they entered one, and the default admin address if they didn't. I'm just guessing, but it sounds like your mail server is seeing the foreign from address and refusing to relay the message. The test above should help determine whether this is the case.

dwilkinsjr, I think the easiest work around for this would be to construct the message so that the FROM address is always the configured admin email address, but use the header information to specify a REPLY-TO address if the commenter submitted one. Something like this in includes/functions_comments.php, from around line 279 (v.1.6).
PHP Code:
        // Additional headers
            
if ($comment_email!="")    $headers .= "From: $comment_name  <$admin_email>\n Reply-To: <$comment_email>\n";
            else 
$headers .= "From: PIXELPOST <$admin_email>\n"
I have not tested this.
__________________
My Photoblog
If you find my help useful please consider feeding the PixelPost Kitty
If you're short on cash just feed my ego
Reply With Quote
  #7  
Old 06-25-2007, 11:55 PM
mgd711's Avatar
mgd711 Offline
pp veteran
 
Join Date: Jun 2007
Posts: 56
Send a message via MSN to mgd711 Send a message via Yahoo to mgd711 Send a message via Skype™ to mgd711
Dakwegmo,

I did the test and I recieved the e-mail. I posted another comment this time using a different e-mail address and nothing.

This is the last entry in the Mail Error log......

2007 Jun 25 23:49:53 Result: 9
2007 Jun 25 23:49:53 From address not in member domain. Message not sent.


Mike

Update............

I put your code into the Includes/functions_comments.php file and the e-mails are now sent.

Thanks,

Mike

Last edited by mgd711; 06-26-2007 at 12:49 AM.
Reply With Quote
  #8  
Old 06-26-2007, 01:12 AM
dakwegmo's Avatar
dakwegmo+ Offline
Team Pixelpost
 
Join Date: Jul 2005
Location: West of Between
Posts: 689
Quote:
Originally Posted by mgd711 View Post
From address not in member domain. Message not sent.
That pretty much confirms my suspicion. Since I couldn't test it, can you tell me whether when you hit reply if it goes to the admin email address or the users configured email address?

Also, remember you've just hacked the files, officially hacked PP isn't supported. The biggest problem with hacking files is with upgrading, but I imagine there will be something like this in the next release of PP, so you probably don't need to worry too much about it.
__________________
My Photoblog
If you find my help useful please consider feeding the PixelPost Kitty
If you're short on cash just feed my ego
Reply With Quote
  #9  
Old 06-26-2007, 08:23 AM
mgd711's Avatar
mgd711 Offline
pp veteran
 
Join Date: Jun 2007
Posts: 56
Send a message via MSN to mgd711 Send a message via Yahoo to mgd711 Send a message via Skype™ to mgd711
Quote:
Originally Posted by dakwegmo View Post
That pretty much confirms my suspicion. Since I couldn't test it, can you tell me whether when you hit reply if it goes to the admin email address or the users configured email address?

Also, remember you've just hacked the files, officially hacked PP isn't supported. The biggest problem with hacking files is with upgrading, but I imagine there will be something like this in the next release of PP, so you probably don't need to worry too much about it.
When I reply to the e-mails it goes to the admins e-mail address and not the person that left the comments.

Thanks for your help.

Mike
Reply With Quote
  #10  
Old 06-26-2007, 12:58 PM
dakwegmo's Avatar
dakwegmo+ Offline
Team Pixelpost
 
Join Date: Jul 2005
Location: West of Between
Posts: 689
Ok. You can change this:
PHP Code:
            // Additional headers
            
if ($comment_email!="")    $headers .= "From: $comment_name  <$comment_email>\n";
            else 
$headers .= "From: PIXELPOST <$admin_email>\n"
to this:
PHP Code:
            // Additional headers
            
if ($comment_email!="")    
                {
$headers .= "From: $comment_name  <$admin_email>\n"
                 
$headers .= "Reply-To: $comment_name <$comment_email>\n"; }
            else 
$headers .= "From: PIXELPOST <$admin_email>\n"
That should allow your emails to get through, and reply to commenters directly with your reply button.
__________________
My Photoblog
If you find my help useful please consider feeding the PixelPost Kitty
If you're short on cash just feed my ego
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 01:31 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs