Send email: Difference between revisions
Content added Content deleted
Line 994: | Line 994: | ||
/** Mail constructor. |
/** Mail constructor. |
||
* @constructor Mail |
|||
* |
|||
* @param host Host |
* @param host Host |
||
*/ |
*/ |
||
class Mail(host: String) { |
class Mail(host: String) { |
||
val |
val session = Session.getDefaultInstance(new Properties() { put("mail.smtp.host", host) }) |
||
properties.put("mail.smtp.host", host) |
|||
val session = Session.getDefaultInstance(properties) |
|||
/** Send email message. |
/** Send email message. |