I am trying to use this mail function to send mail with PHP, but can't get it to work....
I am using OS X with PHP4.1.2...
This function needs a mail application open for php to send a mail??
I have OS X's default application mail.app open and I am connected to the internet, and my script just pauses..
Here is the script,
<?php
$toaddress = "somebody@btinternet.com";
$subject = "RE: User's Request";
$mailcontent = "To : User";
mail($to, $subject, $mailcontent);
?>
How can I get this to work, is there a way of telling php which mail program to point to?
The aim in the end is to have this run on the college server, but Im developing at home and all is going well except for the mail bits....
Thanks very much in advance,
Ian