自己给自己发邮件 | send a email to myself

DEMO

自己给自己发邮件 V0.4 beta

这是个简洁,快速地通过把文字备份到设定好的E-mail地址,并在发送前通过输入设定在程序中的密码来认证是否是本人操作的简单Php程序。

本程序完全开放源码,你可以自由删改,但需要保留本页面的链接及以相同方式共享。
cc2.5

昨晚写的这么,结果那个小问题被某片简单的一句话解决了,只是调换了一行代码的位置,现在重新修改后发布,让代码更易用。

P.S.灵感来源是我在机房上网网速太慢,打开记事类网站很慢。相对于很眩很酷的网站来说,那些符合标准且简直至极的为移动互联网所制作的网站是我的在移动中或者低网速中的最爱。我英语不是太好,但是依然用三脚猫的英语写了代码注释,我想应该看得懂的吧,我会继续完善英语部分的。

下载源文件在文末,且源文件没有中文注释。

send a email to myself V0.4 beta

is a simple and fast php product,is fast way to send a email to yourself!

cc2.5

enjoy it!

download code @ end of code

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3.     <head>
  4.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5.     <title>send a email to myself</title>
  6. </head>
  7. <body>
  8. <?php
  9.     // enter somethings
  10.     $imailads = "myself@example.com";//enter you maill address here
  11.     $sendemailads = "someone@example.com";//enter sendr maill address here
  12.     $siteurl = "http://example.com";//enter you home URL
  13.     $ipassword = "password";//enter you password here
  14.     //code start!
  15.     if (isset($_REQUEST['message']))
  16.         {
  17.         if($_REQUEST['password']=="$ipassword")   
  18.             {
  19.             $message = $_REQUEST['message'];
  20.             $message = str_replace("\'","'",$message);
  21.             $message = str_replace('\"','"',$message);
  22.             $message = str_replace('\\','\"',$message);
  23.             $message = str_replace('"\"',"",$message);
  24.             mail($imailads,"to myself",$message,"From:$sendemailads");
  25.             echo "maill has been send
  26.             <br />
  27.             <a href=\"$siteurl\">back to home</a>";
  28.             }
  29.         else
  30.         {
  31.         echo"password error!
  32.         <br />
  33.         <a href=\"$siteurl\">back to home</a>";
  34.         }}
  35.     else
  36.     {
  37.         echo "<form name='input' action='index.php' method='post'>
  38.     message:<br />
  39.     <textarea name='message' rows='20' cols='18'>
  40. </textarea>
  41.     <br />
  42.     <input type='text' name='password'/>password
  43.     <br />
  44.     <input type='submit' value='Submit'/>
  45.     </form>";
  46.     }?>
  47. </body>
  48. </html>

download (下载)

本文共有 4 条评论自己给自己发邮件 | send a email to myself


  1. 1 Unreal

    广告位招租

  2. 2 帅到★涨停版

    天书!我看到天书啦!

  3. 3 tobewarm

    呵呵,有趣!

  4. 4 c`c

    .实话。。。很迷茫。。

请留下您的评论:




Everybody lies