易截截图软件、单文件、免安装、纯绿色、仅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)


相关文档:

ASP.NET常见错误及解决方法

在ASP.NET出现错误时,应该先检查ASP.NET环境是否正确搭建,比如以下几个方面:
1、是否安装相应版本的.NET Framework程序,并打好了补丁。
2、IIS是否安装运行正常,站点路径及ASP.NET版本是否配置正确。
3、在IIS WEB服务扩展中,是否允许了ASP.NET扩展。
4、是否有安全防护软件禁止向Windows和Temp文件夹写入文 ......

asp.net页面中动态地添加javascript脚本

最近的项目开发中 遇到一些需要根据具体情况动态添加javaScript脚本,然后执行脚本 于是收集了一下:
1 在控件的绑定事件中添加脚本 如:在gridview控件的rowdatabind事件中可以实现 指针的选中行不同色显示 可添加脚本
  protected void gvEngineerRepairState_RowDataBound(object sender, GridViewRowEventArgs e ......

ASP.NET 用代码创建HtmlTable

ASP.NET 2.0
文件1: Deafault.aspx
<%@ Page Language="C#" AutoEventWireup="true"      CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
&l ......

VB控件和对象:App 对象

App 对象是VB应用程序的全局信息,如应用程序的标题、版本信息、可执行文件和帮助文件的路径及名称以及是否运行前一个应用程序的示例。
属性
    ------- 其他属性-----------------
    EXEName 属性      返回当前正运行的可执行文件 ......

asp.net 设置出错页

    <system.web> 
      <!--********出错页的设定********-->
    <customErrors mode="On" defaultRedirect="~/Error.htm"> </customErrors> ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号