40,8 → 40,8 |
|
static String[] serverEmails; |
static int serverEmailPos = -1; |
static Session session = null; |
static Transport transport = null; |
Session session = null; |
Transport transport = null; |
|
|
static |
70,10 → 70,10 |
|
|
// Set up properties for mail session |
Properties props = System.getProperties(); |
//Properties props = new Properties(); |
//Properties props = System.getProperties(); |
Properties props = new Properties(); |
props.put("mail.smtp.host", Globals.EMAIL_SERVER_HOST); |
//props.setProperty("mail.transport.protocol", "smtp");//todo new |
props.setProperty("mail.transport.protocol", "smtp");//todo new |
final String username = Globals.EMAIL_SERVER_USERNAME; |
final String password = Globals.EMAIL_SERVER_PASSWORD; |
javax.mail.Authenticator authenticator = null; |