In the log4j2 offcial documentation there is a code snippet for the smtp appender .My Question here is there is no smtpPassword field included. Is it going to work? if yes then where exactly we are specifying the password.
<Appenders><SMTP name="Mail" subject="Error Log" to="errors@logging.apache.org" from="test@logging.apache.org" smtpHost="localhost" smtpPort="25" bufferSize="50"></SMTP></Appenders>