自己给自己发邮件 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!
enjoy it!
download code @ end of code
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>send a email to myself</title>
- </head>
- <body>
- <?php
- // enter somethings
- $imailads = "myself@example.com";//enter you maill address here
- $sendemailads = "someone@example.com";//enter sendr maill address here
- $siteurl = "http://example.com";//enter you home URL
- $ipassword = "password";//enter you password here
- //code start!
- if (isset($_REQUEST['message']))
- {
- if($_REQUEST['password']=="$ipassword")
- {
- $message = $_REQUEST['message'];
- $message = str_replace("\'","'",$message);
- $message = str_replace('\"','"',$message);
- $message = str_replace('\\','\"',$message);
- $message = str_replace('"\"',"",$message);
- mail($imailads,"to myself",$message,"From:$sendemailads");
- echo "maill has been send
- <br />
- <a href=\"$siteurl\">back to home</a>";
- }
- else
- {
- echo"password error!
- <br />
- <a href=\"$siteurl\">back to home</a>";
- }}
- else
- {
- echo "<form name='input' action='index.php' method='post'>
- message:<br />
- <textarea name='message' rows='20' cols='18'>
- </textarea>
- <br />
- <input type='text' name='password'/>password
- <br />
- <input type='submit' value='Submit'/>
- </form>";
- }?>
- </body>
- </html>
download (下载)



广告位招租
天书!我看到天书啦!
呵呵,有趣!
.实话。。。很迷茫。。