1 ddr_midian Feb 06, 2007 02:00
3 blueyed Feb 11, 2007 20:51
Put the following code into a new file (e.g. "test_email.php"), adjust "YOUR@EMAIL" with your email address and upload it to your webspace:
<?php
error_reporting(E_ALL);
ini_set('display_errors', 'on');
$r = mail( 'YOUR@EMAIL', 'test...', 'test' );
var_dump($r);
?>
Then call the file with your browser: http://example.com/test_mail.php
What does it output?
4 ddr_midian Feb 11, 2007 21:13
Uhm.. nothing. It just gives me a blank screen. Like so: http://www.eatenbymew.com/test_email.php
5 blueyed Feb 11, 2007 21:28
Looking at the source of your URL it shows:
< ? p h p
e r r o r _ r e p o r t i n g ( E _ A L L ) ;
i n i _ s e t ( ' d i s p l a y _ e r r o r s ' , ' o n ' ) ;
$ r = m a i l ( ' xxx ' , ' t e s t . . . ' , ' t e s t ' ) ;
v a r _ d u m p ( $ r ) ;
? >
Somehow you've messed up during copy'n'paste.
PHP does not recognize "< ? p h p", but the browser displays "nothing".
6 ddr_midian Feb 11, 2007 21:34
That's weird, it's showing correctly for me.. and checking the file it's exactly the same as the code you pasted.
7 kawole Feb 11, 2007 21:40
here is what I've got :
bool(true)
8 balupton Feb 11, 2007 22:32
blueyed, how did you get the source of his php file like that?
9 yabba Feb 12, 2007 00:19
Click the link and then view source ;)
<?php
error_reporting(E_ALL);
ini_set('display_errors', 'on');
$r = mail( '<email removed>', 'test...', 'test' );
var_dump($r);
?>
¥
10 blueyed Feb 12, 2007 00:56
kawole, have you used the same email address like you have setup for your b2evo account?
Maybe your host(s) have allowed mail() access only in some directories?!
Try getting the server's error log file(s) and search for "mail" in there - or ask your host about it.
I don't think it's a b2evo problem.
DDR Midian, please retry creating the file. It seems to somehow have gotten "binary" and probably PHP just ignores and does not execute it.
11 ddr_midian Feb 12, 2007 03:02
Alright, the file worked. Now I get:
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in c:\sites\single11\eatenbymew\webroot\test_email.php on line 4
bool(false)
12 pmowbray Feb 12, 2007 10:33
I've got this problem as well! :(
I've uploaded the test_email.php and have received an email when running that file.
But my blog won't send emails (I get the same error posted earlier).
Any ideas :?:
13 blueyed Feb 12, 2007 22:46
1) Try putting the test_email.php into your "/htsrv/" folder
2) Contact your host
3) Look into your error log
(I've said most of that already..)
14 kawole Feb 13, 2007 10:46
blueyed wrote:
kawole, have you used the same email address like you have setup for your b2evo account?
of course ^^
blueyed wrote:
Maybe your host(s) have allowed mail() access only in some directories?!
Try getting the server's error log file(s) and search for "mail" in there - or ask your host about it.
already did that, my host found no problem.
15 pmowbray Feb 14, 2007 13:34
Hi:
Forgot to mention I'm using 1.9.2, and sorry for stuffing the format in this thread :oops: Is there a better way??
blueyed wrote:
1) Try putting the test_email.php into your "/htsrv/" folder
Did that and it worked fine also: displayed "true" from memory and email received almost instantly.
blueyed wrote:
2) Contact your host
Will do, but generally they won't get into this sort of issue.
blueyed wrote:
3) Look into your error log
Is this the right info?
Entry for Test_Email.php:
2007-02-14 12:19:12 W3SVC10905 NAIAD 209.200.229.24 GET /htsrv/test_email.php - 80 - 59.167.172.125 HTTP/1.1 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1; - mitupela.net 200 0 0 187 603 218
Entry for SendMessage:
2007-02-14 12:23:53 W3SVC10905 NAIAD 209.200.229.24 POST /htsrv/message_send.php - 80 - 59.167.172.125 HTTP/1.1 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+NT+5.1;+SV1;+.NET+CLR+1.1.4322;+FDM;+.NET+CLR+2.0.50727;+Maxthon+2.0) http://www.mitupela.net/index.php?blog=1&disp=msgform&recipient_id=1&post_id=16&redirect_to=%2Findex.php%3Fblog%3D1%26page%3D1 www.mitupela.net 303 0 0 410 1643 796
blueyed wrote:
(I've said most of that already..)
Thanks and sorry,
Perry
(deleted cookie contents! - blueyed)
16 blueyed Feb 18, 2007 19:25
Sorry to refer you again to another thread.. :)
It's the same problem (emails don't arrive) and it's not a b2evo problem.
See http://forums.b2evolution.net/viewtopic.php?p=51417#51417
Btw: I'Ve removed your b2evo session ID from the log file (?) entries above (where cookie contents was displayed). Someone can take control over your account, if he abuses this information!
17 pmowbray Feb 19, 2007 02:33
blueyed wrote:
Sorry to refer you again to another thread.. :)
Not at all, a list of "See Also" links is extremely useful!
blueyed wrote:
It's the same problem (emails don't arrive) and it's not a b2evo problem.
See http://forums.b2evolution.net/viewtopic.php?p=51417#51417
Thanks, I'll have a look...
blueyed wrote:
Btw: I'Ve removed your b2evo session ID from the log file (?) entries above (where cookie contents was displayed). Someone can take control over your account, if he abuses this information!
Ah, thanks again... I thought I was probably posting a bit too much ;)
same problem with my version : 1.8.7.
I asked my host about PHP mail() function and it's enable on my server.
I also don't receive comment notification anymore.
:(