Digger3000
06-17-2006, 03:14 AM
I downloaded a free SMTP server called Free SMTP server (imagine that.) And I have a PHP script that looks like this:
$to="My Email Address";
$subject="Yo!";
$message="Hi!";
mail($to, $subject, $message) or die("Failed");
And it's of course showing me, failed. Any other settings or things I forgot to do?
did you configure your php.ini to use it?
I think I used fake sendmail in the past:
http://www.glob.com.au/sendmail/
what does it say if you take off the ' or die(...)" ?
Digger3000
06-17-2006, 03:22 AM
If I take off the or die it doesn't say anything. Here's the general mail area of my php.ini:
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
sendmail_from = confirmation@betaboards.gotdns.com
can you telnet into your local SMTP server and send email?
follow these directions..
http://www.yuki-onna.co.uk/email/smtp.html
is display_errors on in your php.ini ? does the SMTP server say that it processes it or anything?
Digger3000
06-17-2006, 03:32 AM
What is my local SMTP server again? And yes, display_errors says On.
your local SMTP server is localhost which points to 127.0.0.1 (ping localhost to see for yourself)
Digger3000
06-17-2006, 03:37 AM
My SMTP server (free SMTP server) lists my email address under active connections, but I never get the email.
if you send an email to the address using a valid smtp server, does it work?
Digger3000
06-17-2006, 03:41 AM
I'm not really familiar with SMTP servers so I don't know.
d11wtq
06-17-2006, 11:49 AM
Here's a quick way to debug:
Download Swift Mailer from swiftmailer.org. Tell it to connect to your SMTP server on locahost, try sending an email and print_r($mailer->transactions) to see what happened. The errors plugin will help to show you the obvious too.
Digger3000
06-17-2006, 03:42 PM
Ok, how do I tell it to do that, specifically?
d11wtq
06-17-2006, 04:06 PM
Ok, how do I tell it to do that, specifically?
Did you read the documentation (http://www.swiftmailer.org/documentation/)?
Namely: http://www.swiftmailer.org/documentation/33#view
Digger3000
06-17-2006, 04:58 PM
Oh right, documentation. Thanks, that worked.