Page 1 of 3

I don't receive e-mail

Posted: Fri Nov 13, 2009 5:58 am
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

Posted: Wed Nov 18, 2009 10:02 pm
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

Posted: Thu Nov 19, 2009 5:03 am
by ulysse75010
the test worked fine, I received the mail

Same here..!

Posted: Tue Dec 01, 2009 2:16 pm
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:

Posted: Tue Dec 01, 2009 4:17 pm
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.

Sorted thanx.. ;-)

Posted: Tue Dec 01, 2009 6:19 pm
by willer
:wink:

E-Mails coming through now..!

Changed settings.php

Code: Select all

/* ini_set('display_errors', 0);
    ini_set('log_errors', 1); */

I don't receive any email

Posted: Wed Dec 16, 2009 8:54 am
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

Posted: Wed Dec 16, 2009 4:23 pm
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.

Posted: Wed Dec 23, 2009 1:19 am
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).

Posted: Fri Dec 25, 2009 2:02 pm
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?

Posted: Sat Dec 26, 2009 2:25 pm
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.

Email still not being received from gbook

Posted: Thu Mar 04, 2010 3:48 pm
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

Posted: Thu Mar 04, 2010 5:22 pm
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

Trying to work out email rsponse problem

Posted: Thu Mar 04, 2010 6:15 pm
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.

Posted: Thu Mar 04, 2010 11:53 pm
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