菜鸟请教!

解决方案 »

  1.   

    using System;
    using System.Collections.Generic;
    using System.Text;
    using System.Diagnostics;
    using System.Threading;
    using System.Windows.Forms;namespace XNLogin
    {
        class Program
        {
            static void Main(string[] args)
            {            Process.Start("iexploer.exe");            System.Threading.Thread.Sleep(1000);
                SendKeys.SendWait("收件人邮箱写此");
                 SendKeys.SendWait("{TAB}");
                System.Threading.Thread.Sleep(500);
                SendKeys.SendWait("标题写此");
           SendKeys.SendWait("{TAB}");
                System.Threading.Thread.Sleep(500);
                 SendKeys.SendWait("内容写此");//内容较长可以用一个字符串变量替代。
            }
        }
    }
      

  2.   

    你的这种功能建议使用其它脚本语言实现,比如:AutoIT
      

  3.   

    改成Process.Start("http://www.126.com");
    System.Threading.Thread.Sleep(10000);//在10秒内点击写信,否则不行。 
      

  4.   

    FOXMAIL明显不行
    要写C#实现
      

  5.   

    给你一个SMTP的例子http://d.download.csdn.net/down/657879/liguicd