uranus.webhop.net
Code: mail.php.disabled_by_bastiaan
- <?php
- /* Everyone is free to use all the code on this site, but I would really appreciate if the site the code is used for becomes open as well. I would really like to hear from you if you use the code, and send me a link to your site. */
- $add = "sam_at_utrecht_dot_njn_dot_nl"; // Yeah, yeah - I know you can read this :)
- $add = str_replace("_at_","@","$add");
- $add = str_replace("_dot_",".","$add");
- if( $_POST['topic'] && $_POST['content'] ) {
- $topic = $_POST['topic'];
- $raw = $_POST['content'];
- mail($add,$topic,$raw);
- $content = array();
- $content = explode("\n",$_POST['content']);
- print("<div class=\"subtitle\" style=\"text-indent: 0px; text-align: center;\">Your mail: $topic</div>");
- print("<div style=\"font-size: 5px; visibility: hidden;\">.</div>");
- print("<div class=\"mailcontent\">");
- foreach( $content as $line) { print("$line<br />"); }
- print("</div>");
- } else {
- print("<div class=\"subtitle\" style=\"text-indent: 0px; text-align: center;\">Send me a mail!</div>");
- print("<form action=\"index.php?page=mail.php\" method=\"post\">\n");
- print("<div style=\"text-align: center; text-indent: 0px;\"><input name=\"topic\" onfocus=\"this.select()\" type=\"text\" value=\"Topic\" class=\"formtext\" /><br /></div>\n");
- print("<div style=\"font-size: 5px; visibility: hidden;\">.</div>");
- print("<div style=\"text-align: center; text-indent: 0px;\"><textarea name=\"content\" onfocus=\"this.select()\" class=\"formtext block\" rows=\"18\" cols=\"60\">Content - if you want me to reply insert your email address as well.</textarea><br /></div>\n");
- print("<div style=\"font-size: 5px; visibility: hidden;\">.</div>");
- print("<div style=\"text-align: center; text-indent: 0px;\"><input class=\"formbutt\" type=\"submit\" value=\"Send!\" /></div>");
- print("</form>\n");
- }
- ?>
.: Page last modified: December 03 2023 23:32:39 - Copyleft 2004 :.