I don't receive e-mail

Dr. GBooky is here to help you with your guestbook problems ...
ulysse75010
Posts: 4
Joined: Thu Nov 12, 2009 4:26 pm

I don't receive e-mail

Post by ulysse75010 »

Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

I've parameterd gbook with my e-mail and an admin password, though I don't receive any e-mail and if I want to post another test comment I get

ERROR
You already have a message waiting approval!

When I delete .txt file in apptmp and I try again I get

Error
Could not lock the entries file. Please try again later

the url for my guestbook test is

http://rencontres.tarot.free.fr/paris/blog/guestbook/

Thx
Jean-Claude ARON
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

It is probably a problem with your php on your server not being able to send mail to you because GBook uses the standard php mail function.
Do you have any other php scripts on your site that do send you mail?

If not, could you test with the email-test script http://www.phpjunkyard.com/extras/email_test.zip
unzip it, change the sender and recipient e-mail adresses in the file email_test.php and upload it to your server. Than open the file in your browser and see if it sends the mail to you.

Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
ulysse75010
Posts: 4
Joined: Thu Nov 12, 2009 4:26 pm

Post by ulysse75010 »

the test worked fine, I received the mail
Jean-Claude ARON
willer
Posts: 3
Joined: Tue Dec 01, 2009 1:54 pm

Same here..!

Post by willer »

email_test.php.. works fine. :)

but get no approval e-mail when a comment is added..! :(

will investigate it when i get a second :roll:
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Try deleting

Code: Select all

ini_set('display_errors', 0);
ini_set('log_errors', 1);
from settings.php file and see if you get any new error messages or warnings when you try to submit a message.
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
willer
Posts: 3
Joined: Tue Dec 01, 2009 1:54 pm

Sorted thanx.. ;-)

Post by willer »

:wink:

E-Mails coming through now..!

Changed settings.php

Code: Select all

/* ini_set('display_errors', 0);
    ini_set('log_errors', 1); */
pdurvasula
Posts: 17
Joined: Thu Sep 28, 2006 5:12 am

I don't receive any email

Post by pdurvasula »

Hi
I am not getting any email notification nor the visitor getting any email after a comment is made in the guest book version 1,7
I have sent test email as above and got it alright.
I have deleted the code mentioned in the above posts also but to no use
Kindly help me
Thanks
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

If the e-mail test worked but you aren't getting e-mails from GBook the only thing I can think of is that a SPAM filter is blocking the mail as there is no reason why it should work in one script but the same code wouldn't work in another.
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
sonya
Posts: 2
Joined: Wed Dec 23, 2009 1:17 am

Post by sonya »

Having the same problem with email not coming through.

In addition when I tried (4 times) to download the zipped email test script winzip is telling me it is an invalid archive type and can't open it.

(I tried removing those two snippets of code as mentioned above but that didn't seem to help so I put the code back in).
sonya
Posts: 2
Joined: Wed Dec 23, 2009 1:17 am

Post by sonya »

Okay I got the email text php file to download, i changed the email addresses and uploaded it to the server. It says "sent mail" but I did not receive it.

Is there something wrong with the settings on the server?
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Yes, this means sending mail from PHP is not working correctly on the server. It has either been disabled or not configured properly, this is something you host needs to look into.
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
lotuscott
Posts: 4
Joined: Wed Feb 17, 2010 8:06 pm

Email still not being received from gbook

Post by lotuscott »

Sorry, but I've tried everything suggested in these posts to get a test email to come through for approval for a new post, and I'm still not receiving any emails. I tried the email test script and it worked fine.

Plus, even though I have the settings set for multiple entries per session, I can't run more than one test at a time.

I have a client waiting for his gbook and I'm running out of excuses.

I know I've done something stupid but I can't figure it out. Help.

http://www.rostratransmission.com/gbook/gbook.php
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

hello lotuscott,
lotuscott wrote:Sorry, but I've tried everything suggested in these posts to get a test email to come through for approval for a new post, and I'm still not receiving any emails. I tried the email test script and it worked fine.
Maybe stupid question, but did you use the same e-mail address for the test and in $settings['admin_email']='me@rostratransmission.com'; ?
And did you execute the scripts from the same folder?
lotuscott wrote:Plus, even though I have the settings set for multiple entries per session, I can't run more than one test at a time.
I can't think of any reason why this would not work as expected. Please check again if you have $settings['one_per_session']=0; in your settings.php file.

Plus, please post the following info as we would expect from a new poster with problems:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:

downloads of phpinfo.php and session_test.php can be found in this thread viewtopic.php?t=83

Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
lotuscott
Posts: 4
Joined: Wed Feb 17, 2010 8:06 pm

Trying to work out email rsponse problem

Post by lotuscott »

Okay, I did check my settings on the multiple sessions and I misunderstood the code and had 1 checked instead of 0. So that's okay now.

Yep, the email addresses I used were both the same. The only difference was I uploaded the test file into the root directory and the gbook is in the gbook folder inside it. I can't figure out why that would make a difference, though.

The URL of the gbook is: http://www.rostratransmission.com/gbook/gbook.php.
The session test was done from: http://www.rostratransmission.com/email_test.php

I'm trying to get the official name of the host, since a friend of mine is hosting the site. It may be her server since I've used your gbook on another site and it works beautifully. Well worth buying you a drink.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

lol, not my guestbook, but Klemen's.

And indeed, i do not know why sending e-mails inside the gbook folder would be blocked, but you could try using the email_test.php from inside the gbook folder anyway, just to be sure.

Only difference in e-mail_test and gbook mail is the make up of the mail line

email_test.php

Code: Select all

mail($to,'Test message','E-mail test successfull',$headers);
and
gbook (line 953 in gbook.php version 1.7)

Code: Select all

mail($settings['admin_email'],$lang['t41'],$message,"Content-type: text/plain; charset=".$lang['enc']);
You could try changing in email_test.php to

Code: Select all

mail($to,'Test message','E-mail test successfull','Content-type: text/plain; charset=windows-1250');
That way it will have the same mail headers as are used in the gbook.

If the mail is not received than from the email_test, it might be that php requires to add the From and maybe the Reply to the headers in gbook (line 953 in gbook.php version 1.7) .

Code: Select all

mail($settings['admin_email'],$lang['t41'],$message,"From:sender@rostratransmission.com\nReply-to:sender@rostratransmission.com\nContent-type: text/plain; charset=".$lang['enc']);
Greetings,
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
Post Reply