No email to admin when someone post in guestbook

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
Louwrens
Posts: 1
Joined: Thu Apr 06, 2006 3:21 pm

No email to admin when someone post in guestbook

Post by Louwrens »

I want to get an email back when someone post in my guestbook.

In settings.php i did the following:

/* Send you an e-mail when a new entry is added? 1 = YES, 0 = NO */
$settings['notify']=1;


And:

/* Your e-mail. Only required if $settings['notify'] is set to 1 */
$settings['admin_email']="myemail@mail.nl";


but i get no email when someone post something.
What do i wrong?
I use version 1.35
And ofcourse it's a fake mailadres.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Hi,

GBook uses standard PHP mail() command to send out e-mails. How that command is configured and what restrictions it has is in the hands of your hosting company. There are a few possible problems:

1. your hosting company disabled mail() command in PHP

2. your hosting company hasn't got mail() configured properly

3. some hosts only allow sending mail from scripts to local domains. So if your GBook is installed on www.YOURDOMAIN.com try using some address from that domain, for example info@YOURDOMAIN.com


I suggest you try N.3 first, if that doesn't work contact your hosting company and ask what is wrong with PHP mail() command.

Regards
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply