日期:2014-05-18  浏览次数:20469 次

jmail群发邮件
小弟请教高人:      
      jmail群发邮件,最好帖出来一段原码,搜了n长时间后怀疑:我真逊?还是好多代码逊
      (高人别见笑,小弟初来论坛,人生地不熟!!!)

------解决方案--------------------
HTML:
--------------------
<form id= "Form1 " method= "post " runat= "server ">
<FONT face= "宋体 ">
<TABLE id= "Table1 " style= "Z-INDEX: 101; LEFT: 200px; WIDTH: 496px; POSITION: absolute; TOP: 120px; HEIGHT: 208px "
cellSpacing= "1 " cellPadding= "1 " width= "496 " border= "5 ">
<TR>
<TD align= "center " colSpan= "3 "> <asp:label id= "Label1 " runat= "server " Font-Size= "Large " Font-Bold= "True " ForeColor= "Red "> 发送邮件 </asp:label> </TD>
</TR>
<TR>
<TD> <asp:label id= "Label6 " runat= "server " Font-Bold= "True "> 发件标题: </asp:label> </TD>
<TD> <asp:textbox id= "titletxt " runat= "server " MaxLength= "20 " Height= "24 " Width= "219 "> </asp:textbox> </TD>
<TD> <asp:requiredfieldvalidator id= "RequiredFieldValidator5 " runat= "server " ControlToValidate= "titletxt " ErrorMessage= "* "> </asp:requiredfieldvalidator> </TD>
</TR>
<TR>
<TD style= "HEIGHT: 11px "> <asp:label id= "Label2 " runat= "server " Font-Bold= "True "> 收件人地址: </asp:label> </TD>
<TD style= "HEIGHT: 11px "> <asp:textbox id= "toemail " runat= "server " Height= "24px " Width= "219px "> </asp:textbox> </TD>
<TD style= "HEIGHT: 11px "> <asp:requiredfieldvalidator id= "RequiredFieldValidator1 " runat= "server " ControlToValidate= "toemail " ErrorMessage= "* "> </asp:requiredfieldvalidator> <asp:regularexpressionvalidator id= "RegularExpressionValidator1 " runat= "server " ControlToValidate= "toemail " ErrorMessage= "请填写正确邮箱 "
ValidationExpression= "\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)* "> </asp:regularexpressionvalidator> </TD>
</TR>
<TR>
<TD style= "HEIGHT: 3px "> <asp:label id= "Label3 " runat= "server " Font-Bold= "True "> 发件人地址: </asp:label> </TD>
<TD style= "HEIGHT: 3px "> <asp:textbox id= "fromemailtxt " runat= "server " Height= "24px " Width= "219px "> </asp:textbox> </TD>
<TD style= "HEIGHT: 3px "> <asp:requiredfieldvalidator id= "RequiredFieldValidator2 " runat= "server " ControlToValidate= "fromemailtxt " ErrorMessage= "* "> </asp:requiredfieldvalidator> <asp:regularexpressionvalidator id= "RegularExpressionValidator2 " runat= "server " ControlToValidate= "fromemailtxt "
ErrorMessage= "请填写正确邮箱 " ValidationExpression= "\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)* "> </asp:regularexpressionvalidator> </TD>
</TR>
<TR>
<TD style= "HEIGHT: 71px "> <asp:label id= "Label5 " runat= "server " F