Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagehtml/xml
linenumberstrue
<mail>
	<server>
		<host>smtp.gmail.com</host>
		<port>587</port>								<!-- specify port: 25, 587 (e.g. MS Exchange and TLS) or other based on your mail server -->
														<!-- you can skip the port definition altogether to use default -->
		<username>abc@gmail.com</username>
        <password>
			<clearValue>abcdef</clearValue>
		</password>
        <transportSecurity>starttlsRequired</transportSecurity>		<!-- other possibilities: none, starttlsEnabled, starttlsRequired -->
	</server>                                           <!-- there can be more servers if necessary; they are tried in the order specified -->
    <!--
    <server>                                            <!-- Second server -->
       . . .
    </server>
    <server>                                            <!-- Third server -->
       . . .
    </server>
    -->
    <defaultFrom>abc@gmail.com</defaultFrom>
	<debug>true</debug>									<!-- standard javax.mail debugging; it is going to stdout (catalina.out)! -->
    <logToFile>mail-notifications.log</logToFile>		<!-- All notifications are logged to this file IN ADDITION TO sending them via mail. They are
                                                             logged in all cases: even if they eventually cannot be send. Implemented since 3.6.1. -->
</mail>

<sms name="default">		<!-- there can be more SMS configurations, distinguished by their name -->
	<gateway>				<!-- there can be one or more gateways; if one fails, the next one is tried -->
		<url>				<!-- for the time being we expect gateways accessible via HTTP(S), GET method ... other mechanisms have to be implemented -->
			<script>
				<code>"https://my-sms-gateway.com/send?number=" + to + "&amp;text=" + encodedMessageText</code>
			</script>
		</url>
	</gateway>
</sms>

<sms name="test">
	<redirectToFile>sms-notifications.log</redirectToFile>		<!-- when used, logs all notifications to a file INSTEAD OF sending them via gateway;
																	 this element can be used also within definition of a gateway - in that case the
																	 computed URL is logged as well. -->
</sms>

...