修改邮件工具 2023年3月10日10:05:03
parent
f9e426e585
commit
e190dd3622
|
|
@ -72,6 +72,10 @@
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
#### 3.8 发送邮件
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
### 4. 编解码工具
|
### 4. 编解码工具
|
||||||
|
|
||||||
> 编解码工具也是对开源组件 Hutool 简单封装展示
|
> 编解码工具也是对开源组件 Hutool 简单封装展示
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ public class MailController {
|
||||||
public TextField user;
|
public TextField user;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
public TextField pass;
|
public PasswordField pass;
|
||||||
|
|
||||||
@FXML
|
@FXML
|
||||||
public TextArea content;
|
public TextArea content;
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@
|
||||||
<?import javafx.scene.layout.AnchorPane?>
|
<?import javafx.scene.layout.AnchorPane?>
|
||||||
<?import javafx.scene.text.Text?>
|
<?import javafx.scene.text.Text?>
|
||||||
|
|
||||||
|
<?import javafx.scene.control.PasswordField?>
|
||||||
<AnchorPane prefHeight="649.0" prefWidth="1200.0" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.zhangmeng.tools.controller.MailController">
|
<AnchorPane prefHeight="649.0" prefWidth="1200.0" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.zhangmeng.tools.controller.MailController">
|
||||||
<children>
|
<children>
|
||||||
<Label layoutX="33.0" layoutY="46.0" text="邮件服务器的SMTP地址:" />
|
<Label layoutX="33.0" layoutY="46.0" text="邮件服务器的SMTP地址:" />
|
||||||
|
|
@ -19,7 +20,7 @@
|
||||||
<Label layoutX="126.0" layoutY="163.0" text="发件人:" />
|
<Label layoutX="126.0" layoutY="163.0" text="发件人:" />
|
||||||
<Label layoutX="126.0" layoutY="215.0" text="用户名:" />
|
<Label layoutX="126.0" layoutY="215.0" text="用户名:" />
|
||||||
<Label layoutX="138.0" layoutY="264.0" text="密码:" />
|
<Label layoutX="138.0" layoutY="264.0" text="密码:" />
|
||||||
<TextField fx:id="pass" layoutX="171.0" layoutY="260.0" prefHeight="25.0" prefWidth="285.0" />
|
<PasswordField fx:id="pass" layoutX="171.0" layoutY="260.0" prefHeight="25.0" prefWidth="285.0" />
|
||||||
<Text layoutX="471.0" layoutY="59.0" strokeType="OUTSIDE" strokeWidth="0.0" text="(可选,默认为smtp.<发件人邮箱后缀>)" />
|
<Text layoutX="471.0" layoutY="59.0" strokeType="OUTSIDE" strokeWidth="0.0" text="(可选,默认为smtp.<发件人邮箱后缀>)" />
|
||||||
<Text layoutX="471.0" layoutY="119.0" strokeType="OUTSIDE" strokeWidth="0.0" text="(可选,默认25)" />
|
<Text layoutX="471.0" layoutY="119.0" strokeType="OUTSIDE" strokeWidth="0.0" text="(可选,默认25)" />
|
||||||
<Text layoutX="471.0" layoutY="176.0" strokeType="OUTSIDE" strokeWidth="0.0" text="(必须正确,否则发送失败)" />
|
<Text layoutX="471.0" layoutY="176.0" strokeType="OUTSIDE" strokeWidth="0.0" text="(必须正确,否则发送失败)" />
|
||||||
|
|
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 81 KiB |
Loading…
Reference in New Issue