What does props.put(“mail.smtp.host”, host) in JavaMail do?

后端 未结 2 1939
梦如初夏
梦如初夏 2021-02-14 01:43

Can anybody explain me what this line means in JavaMail API?

props.put(\"mail.smtp.host\", host);

It is used to setup a mail server, but I don\

2条回答
  •  天命终不由人
    2021-02-14 02:23

    This value helps Javamail to understand to which server it has to hit for DNS name. Its ususally through a port opened( default 25).

提交回复
热议问题