1)90%的用户装有邮件客户端 outlook系统自带的
2)没装,或者没设置的。那就放弃此类用户。毕竟目标是常用邮件的用户

解决方案 »

  1.   

    把下面这段代买改改就好了1
    SmtpClient client = new SmtpClient("smtp.sina.com");
                client.UseDefaultCredentials = false;
                client.Credentials = new System.Net.NetworkCredential("[email protected]", "li13968849310ch");
                client.DeliveryMethod = SmtpDeliveryMethod.Network;
                MailMessage mail = new MailMessage("[email protected]", "[email protected]");
              // mail.From = new MailAddress("[email protected]");
             //  mail.To.Add("[email protected]");
                mail.Subject = "邮件试发";
                mail.BodyEncoding = System.Text.Encoding.Default;//邮件的内容格式
                mail.Body = "Hello Oscar";
                Attachment data = new Attachment(@"C:\新建 文本文档.txt",System.Net.Mime.MediaTypeNames.Application.Octet);            mail.Attachments.Add(data);  //添加附件           
                mail.IsBodyHtml = true;
                client.Send(mail);
                MessageBox.Show("OK");
      

  2.   

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-31j">
    <title>Insert title here</title>
    <style type="text/css">
    .mailLabel {
    display: inline-block;
    width: 100px;
    }
    </style>
    <script type="text/javascript">
    function sendMail() {
    var mailForm = document.getElementById("mailForm");
    var address = "mailto:" + document.getElementById("address").value;
    mailForm.action = address;
    mailForm.submit();
    }
    </script>
    </head>
    <body>
    <form action="mailto:[email protected]" id="mailForm">
    <div>
    <span class="mailLabel">
    Address:
    </span>
    <span>
    <input type="text" name="address"/>
    </span>
    </div>
    <div>
    <span class="mailLabel">
    CC:
    </span>
    <span>
    <input type="text" name="cc"/>
    </span>
    </div>
    <div>
    <span class="mailLabel">
    BCC:
    </span>
    <span>
    <input type="text" name="bcc"/>
    </span>
    </div>
    <div>
    <span class="mailLabel">
    Subject:
    </span>
    <span>
    <input type="text" name="subject"/>
    </span>
    </div>
    <div>
    <span class="mailLabel">
    Content:
    </span>
    <span>
    <textarea name="body" rows="4" cols="14"></textarea>
    </span>
    </div>
    <input type="button" value="send" onclick="sendMail();"/>
    </form>
    </body>
    </html>
    毫无难度。
    mailto:后面的地址规定了如果要加参数需要加?,后面的任意参数之间用&隔开。但是用form提交就不需要这么烦了。但是要记住参数的名字,分别是上面写的标签的name属性(cc,bcc,subject,body)
      

  3.   


    你还不如我写的那个简洁呢
    我想的是“BODY”拆开,很多个“BODY”然后统一邮件发送
      

  4.   

    我上贴已经说了,不管你是post发送还是get发送,不管你是form还是a,只要最后拼出来的url对就ok。
    所以,你所谓的把body分开,加入格式。就是分成几个input,然后拼body。<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Insert title here</title>
    <style type="text/css">
        .mailLabel {
            display: inline-block;
            width: 100px;
        }
    </style>
    <script type="text/javascript">
        function sendMail() {
            var mailForm = $("mailForm");
            var address = "mailto:" + $("address").value;
            mailForm.action = address;
    addBody($("body"), "connectLabel", "connect");
    addBody($("body"), "ageLabel", "age");

            mailForm.submit();
        }
        function $(id) {
    return document.getElementById(id);
        }    function addBody(body, labelId, valueId) {
    body.value += "----------------------------\n";
    body.value += $(labelId).innerHTML + $(valueId).value + "\n";
        }
    </script>
    </head>
    <body>
    <form action="mailto:[email protected]" id="mailForm">
        <div>
            <span class="mailLabel">
                Address:
            </span>
            <span>
                <input type="text" name="address"/>
            </span>
        </div>
        <div>
            <span class="mailLabel">
                CC:
            </span>
            <span>
                <input type="text" name="cc"/>
            </span>
        </div>
        <div>
            <span class="mailLabel">
                BCC:
            </span>
            <span>
                <input type="text" name="bcc"/>
            </span>
        </div>
        <div>
            <span class="mailLabel">
                Subject:
            </span>
            <span>
                <input type="text" name="subject"/>
            </span>
        </div>
        <div id="content">
            <span class="mailLabel" id="connectLabel">联系人:</span>
            <span>
             <input type="text" id="connect"/>     
            </span>
        </div>
        <div>
            <span class="mailLabel" id="ageLabel">年龄:</span>
            <span>
             <input type="text" id="age"/>     
            </span>
        </div>
        <input type="hidden" name="body" id="body"/>
        <input type="button" value="send" onclick="sendMail();"/>
    </form>
    </body>
    </html>
      

  5.   

    lz不要那么高级的东西。如果要发送邮件,php有mail service,java有javamail。用百度一搜一大堆