Email not being received

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
darrennye
Posts: 2
Joined: Mon May 12, 2008 2:44 pm

Email not being received

Post by darrennye »

Script URL: www.manorbnb.com/guestbook/
Version of script: 1.6
Hosting company: godaddy
URL of phpinfo.php: http://www.manorbnb.com/phpchk.php
URL of session_test.php: http://www.manorbnb.com/ses-test.php
What terms did you try when SEARCHING for a solution: email

Write your message below:

I am not receiving any email notifications.

My settings.php include:

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

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

I have other scripts sending me emails without a problem (see www.manorbnb.com/reservations/ - using http://www.tectite.com

Thank you for your help!

Any suggestions?
darrennye
Posts: 2
Joined: Mon May 12, 2008 2:44 pm

Disregard!

Post by darrennye »

I finally got the email - for some reason it took forever to be delivered.

But now I need to figure out how to change the "From" address to something more common. Currently it's bellamyadmin@p3slh066.shr.phx3.secureserver.net
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Mail took a while probably because your mailserver was busy, GBook doesn't have any influence of mail delivery.

Try adding this code to your settings.php file:

Code: Select all

ini_set("sendmail_from","you@yourmail.com"); 
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
pete917
Posts: 12
Joined: Sat Oct 11, 2008 1:28 pm

Post by pete917 »

I have also just set my email notifier to on but as yet havent received the emails. I guess my host email server is busy too. Ill wait and see what happens and then report back.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Either that or your host has disabled sending mail from PHP.
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
pete917
Posts: 12
Joined: Sat Oct 11, 2008 1:28 pm

Post by pete917 »

Klemen wrote:Either that or your host has disabled sending mail from PHP.
good point. ill check that out as emails have still not arrived.
pete917
Posts: 12
Joined: Sat Oct 11, 2008 1:28 pm

Post by pete917 »

My email doesnt seem to be working. I checked with my host who confirms php mail is enabled. They suggest using the switch -f. Unfortunately I do not know what that means. Could someone kindly explain that one for me and what I need to do to enable this?

Many thanks
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

The -f switch doesn't apply here, only applies if you have access to php.ini or if you are for example using Perl scripts...

It's possible your host allows sending mail to local domains only, try setting the e-mail recipient to something@YOURDOMAIN.com and not @yourISP.com
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
pete917
Posts: 12
Joined: Sat Oct 11, 2008 1:28 pm

Post by pete917 »

Klemen wrote:The -f switch doesn't apply here, only applies if you have access to php.ini or if you are for example using Perl scripts...

It's possible your host allows sending mail to local domains only, try setting the e-mail recipient to something@YOURDOMAIN.com and not @yourISP.com
Hi Klemen -

I tried that one. I even tried gmail. Unfortunately its just not working. Do you have any other thoughts on what I might try next.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Try with some other script that sends mail from PHP and confirm it doesn't work?
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
pete917
Posts: 12
Joined: Sat Oct 11, 2008 1:28 pm

Post by pete917 »

Hi Klemen

I tried that and all works fine, so its something im doing wrong with this script.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

If it 100% works then, since GBook is using the standard PHP mail function and nothing fancy, it must be one of two things:

1. double-check your setting for $settings['admin_email'] in settings.php file to see fi the mail is 100% correct

- OR -

2. you have a SPAM filter which is blocking GBook mail (confusing it with SPAM)? Check inside your spam/junk/bulk folder.
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