Author |
Message |
26/01/2005 07:27:13
|
middleeastfacts
Beginner
Joined: 19/08/2004 17:30:32
Messages: 26
Offline
|
Hi everybody,
When I get email notification that somebody has left a message in the guestbook, it comes from "nobody@ppp03-90070708-072.pt.lu" or an address like that. Is it possible to get the email from a set address?
I'm now using a product called SpamBunker that allows email through only from addresses that I have approved. Unfortunately though, with addresses like nobody@ppp03-90070708-072.pt.lu, which change all the time, I think I'll be having problems with getting the emails. Is there any work-around for this, so that all my emails come from a given address, say guestbook[at]middleeastfacts[dot]com?
Thanks!
Steve
|
|
26/01/2005 09:43:49
|
ET
Graduate
Joined: 21/02/2003 22:17:48
Messages: 179
Offline
|
In the file add.class.php
you find this
Note the part that has nobody@$host
I would assume that you could rename this to a specific email address of your choosing. I haven't tested this out or anything - just seems like the most logical solution - you could modify and test to see.
|
|
26/01/2005 09:56:04
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
If you want the email to always come fom a specific address simply open up lib/add.class.php and locate this lineon the next line simply replacewith the email address you wish it to come from. You can either leave the name that is sent with the email address or change it to something by editting the ".$this->name." part to say <Guestbook>
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
27/01/2005 20:18:22
|
middleeastfacts
Beginner
Joined: 19/08/2004 17:30:32
Messages: 26
Offline
|
Hi guys,
Thanks for your assistance. What I did, that seemed to work, was change up, in the lib/add.class.php file:
With:
It worked like a charm!
Thanks again - your assistance helped me locate approximately where I could make the change.
|
|
27/01/2005 21:14:37
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
middleeastfacts wrote:Hi guys,
Thanks for your assistance. What I did, that seemed to work, was change up, in the lib/add.class.php file:
With:
It worked like a charm!
Thanks again - your assistance helped me locate approximately where I could make the change.
Sometimes you can't see the wood for the trees. Your fix is the correct way as it is simple.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
|