Image

Imagependants_child wrote in Imagephp 😯confused

hi again
i'm stuck with a php/osx problem now
i've set up php on my imac and made a script that sends an email through the browser via php
the weird thing i use the exact same script on my home server running 10.3 server and the script works there
i'm running php 4.3.4 here on my 10.2.6 and the script doesn't work
it goes through the whole code fine, even prints out a thank you message if the email is good but it never sends the email
from what i can tell the culprit line is this


mail($to, $subject, $message, "From: $username") or print "Could not send mail!";

why do i think it's this? because out of curiosity i tried sending an email in the terminal using:

mail best_playa@hot...
subject: test
message:test
EOT


(it's an actual email i just don't want any spam bots to pick it up in this post)

checked my hotmail and nothing
then i tried:

mail

and got this message:

mail: /var/mail/rafikdoc: Is a directory
it's as if there's no mail service thingy (i have no idea what to call it, a mail server?)
how do i get one?
thought it would be built into the bsd part of osx