⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sysemail.jsp

📁 tbuy1.1.5是在netbeans环境下用JSF技术编写的一个论坛tbuy1.1.5是在netbeans环境下用JSF技术编写的一个论坛
💻 JSP
字号:
<%@page contentType="text/html"%><%@page pageEncoding="UTF-8"%><%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%><%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%><%@taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"   "http://www.w3.org/TR/html4/loose.dtd"><style type="text/css">.tCol1 {    width: 120px;}.tCol2 {}</style><f:view locale="#{localeBean.locale}"><html>    <head>        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">        <title>邮件认证设置</title>        <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/common/css/style.css"/>    </head>    <body style="margin:0px">    <h:panelGrid columns="1"         border="0"         cellpadding="3"         cellspacing="3"        styleClass="table2 tableWH"         headerClass="th">            <f:facet name="header">                <h:outputText value="Email认证配置"/>            </f:facet>            <h:messages globalOnly="true"                 showDetail="true"                 infoClass="infos"                 errorClass="errors"                 fatalClass="fatals"/>                <h:outputText escape="false" styleClass="colorGray" value="<b>帮助</b>:                          以下配置经过验证能够正常接发邮件,如果你需要开启邮件认证注册用户,                          那么最简单的配置方式就是申请一个gmail邮箱,然后替换以下相应的红色项目部分的:email地址、用户名、密码即可!                          如果你使用的是其他邮件供应商,请细心多测试,某些供应商可能需要vip用户才能设置客户端软件!" />                <h:form id="myForm1">                <h:panelGrid border="0"                    columns="2"                    cellpadding="3"                     cellspacing="3"                    styleClass="table1 tableWH"                    columnClasses="tCol1,tCol2"                    rowClasses="row2,row1"                    headerClass="th">                    <f:facet name="header">                        <h:outputText value="邮件属性配置"/>                    </f:facet>                    <h:outputText value="服务器类型:"/>                    <h:selectOneMenu value="#{com_sysEmail.serverType}">                        <f:selectItem  itemValue="pop3" itemLabel="pop3"/>                        <f:selectItem  itemValue="imap" itemLabel="imap"/>                        <f:selectItem  itemValue="http" itemLabel="http"/>                    </h:selectOneMenu>                    <h:outputText value="电子邮箱:" styleClass="colorOrange"/>                    <h:inputText value="#{com_sysEmail.address}" size="15"/>                    <h:outputText value="用户名:" styleClass="colorOrange"/>                    <h:inputText value="#{com_sysEmail.user}" size="15"/>                    <h:outputText value="密码:" styleClass="colorOrange"/>                    <h:inputSecret redisplay="true" value="#{com_sysEmail.password}" size="15"/>                    <h:outputText value="发送服务器配置:"/>                    <h:panelGrid border="0"                         columns="2"                        cellpadding="3"                         cellspacing="3">                        <h:outputText value="服务器地址:"/>                        <h:inputText size="15" value="#{com_sysEmail.serverSend}"/>                        <h:outputText value="发送端口:"/>                        <h:inputText size="3" value="#{com_sysEmail.portSmtp}"/>                        <h:outputText value="是否需要安全连接:"/>                        <h:selectBooleanCheckbox value="#{com_sysEmail.isSSLSmtp}"/>                        <h:outputText value="SSL端口:"/>                        <h:inputText size="3" value="#{com_sysEmail.portSSLSmtp}"/>                    </h:panelGrid>                    <!-- receive -->                    <h:outputText value="接收服务器配置:"/>                    <h:panelGrid border="0"                         columns="2"                        cellpadding="3"                         cellspacing="3">                        <h:outputText value="服务器地址:"/>                        <h:inputText size="15" value="#{com_sysEmail.serverReceive}"/>                        <h:outputText value="接收端口:"/>                        <h:inputText size="3" value="#{com_sysEmail.portPop}"/>                        <h:outputText value="是否需要安全连接:"/>                        <h:selectBooleanCheckbox value="#{com_sysEmail.isSSLPop}"/>                        <h:outputText value="SSL端口:"/>                        <h:inputText size="3"                             value="#{com_sysEmail.portSSLPop}"/>                    </h:panelGrid>                    <h:panelGroup/>                    <h:panelGroup>                        <h:commandButton value="确认" action="#{com_sysEmail.configure}"/>                    </h:panelGroup>                 </h:panelGrid>             </h:form>                          <h:form id="myForm2">                <h:panelGrid border="0"                    columns="2"                    cellpadding="3"                     cellspacing="3"                    styleClass="table1 tableWH"                    columnClasses="tCol1,tCol2"                    rowClasses="row2,row1"                    headerClass="th"                    style="margin-top:10px">                    <f:facet name="header">                        <h:outputText value="测试设置"/>                    </f:facet>                    <h:outputText value="接收地址:"/>                    <h:inputText value="#{com_sysEmail.to}" size="15"/>                    <h:outputText value="主题:"/>                    <h:inputText value="#{com_sysEmail.title}" size="15"/>                    <h:outputText value="内容:"/>                    <h:inputTextarea style="width:100%;height:100%;"                        value="#{com_sysEmail.text}"/>                    <h:panelGroup/>                    <h:panelGroup>                        <h:commandButton value="发送测试邮件" action="#{com_sysEmail.testSend}"/>                    </h:panelGroup>                 </h:panelGrid>             </h:form>    </h:panelGrid>    </body></html></f:view>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -