12-21-2009, 02:06 AM
I wrote this hoping to send email from it. However upon completion, I learned I need something called an MTA (Mail transfer agent). Can someone provide me with a link to a good one and how to set it up? Please don't respond Google it. Yes, I can google it. And yes I will get plenty of responses. However I want your opinion on a good one that is easy to set up.
NOTE: If what I'm asking doesn't make any sense, sorry. I don't really know much of what an MTA is.
NOTE: If what I'm asking doesn't make any sense, sorry. I don't really know much of what an MTA is.
PHP Code:
<html>
<body>
<form action="mail.php" method="get">
To: <input type="text" name="to" /><br>
From: <input type="text" name="from" /><br>
Subject: <input type="text" name="from" /><br>
Message: <br>
<textarea rows="5" cols="20" name="message" wrap="physical"></textarea><br>
<input type="submit" value="Send!">
</form>
<?php
$to=$_GET["to"];
$from=$_GET["from"];
$subject=$_GET["subject"];
$message=$_GET["message"];
mail($to,$subject,$message);
?>
</body>
</html>