How to setup a mail server on Mac OS X 10.7.4?
Posted
by
0x90
on Stack Overflow
See other posts from Stack Overflow
or by 0x90
Published on 2012-06-24T03:10:48Z
Indexed on
2012/06/24
3:15 UTC
Read the original article
Hit count: 136
I am working in PHP and I have mamp on my machine. I would like to send emails from my PHP code, like this:
<?php
$to = "[email protected]";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>
How can I configure a mail server for free on my machine?
© Stack Overflow or respective owner