|
#1
|
||||
|
||||
|
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 |
|
#2
|
||||
|
||||
|
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.
__________________
Pixelpost Documentation | Visual Pixels | My Addons | Transition Bottlerocket Fund |
|
#3
|
||||
|
||||
|
Quote:
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 |
|
#4
|
||||
|
||||
|
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.
__________________
Pixelpost Documentation | Visual Pixels | My Addons | Transition Bottlerocket Fund |
|
#5
|
||||
|
||||
|
Quote:
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 |
|
#6
|
||||
|
||||
|
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:
__________________
My Photoblog If you find my help useful please consider feeding the PixelPost Kitty If you're short on cash just feed my ego |
|
#7
|
||||
|
||||
|
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. |
|
#8
|
||||
|
||||
|
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 |
|
#9
|
||||
|
||||
|
Quote:
Thanks for your help. Mike |
|
#10
|
||||
|
||||
|
Ok. You can change this:
PHP Code:
PHP Code:
__________________
My Photoblog If you find my help useful please consider feeding the PixelPost Kitty If you're short on cash just feed my ego |
| Post Reply |
| Thread Tools | |
|
|