Version: one point oh

Type: Sample Code (HOWTO)

Category: HTTP

License: GNU General Public License

Description: Gets email from user and server



<?php
$user = "steve";
$mailserver = "pop.mail.stevenchalker.net";

// GET THE RESULT
$result = "$user"."@"."$mailserver";
$result = str_replace("mail.","",$result);
$result = str_replace("pop.","",$result);
$result = str_replace("imap.","",$result);
// Output: steve@stevenchalker.net
// PRINT THE RESULT
echo $result;
?>
<!--
-Steven Chalker
steve@stevenchalker.net if any errors occur,
http://www.stevenchalker.net
-->