Which 1.5.2 file contains the comment notification function?
-
I’ve noticed I have not been receiving e-mail notification of comments, unless I MYSELF am posting the comment. Finally, I realizd this was the problem a€??
From my server:
“When you send email with a Perl or PHP script, you will need to make sure that the “From:” address in your email header is set to an address within your domain name. If the address is set to an external email address, then you will see an error in your /tmp/mailError.log file. For example:
2003 Jun 18 21:18:15 Result: 9
2003 Jun 18 21:18:15 From address not in member domain. Message not sent.”I have been getting this error. When I post a comment it gets sent to me bacause my e-mail address is of course in my domain. Also, if I disable the “email required to post a comment” function in Discussion Options and post an anonymous comment without an e-mail address I get the notification. But if anyone else posts a comment and uses their own email the mail gets caught up.
So, I think I have two options. I can edit the comment form to remove the e-mail field so this stops happening, but I don’t really want to do that, for security reasons. Or, I can try to edit the mail() funnction so the From field in the email header is always MY email address.
Or, perhaps I can fix the To field, not the From? I think in 1.5.2 the mail() function is in pluggable functions? But I still have no idea how to edit this so everything works.
Any ideas would be greatly appreciated.
- The topic ‘Which 1.5.2 file contains the comment notification function?’ is closed to new replies.