@Override
	public void run() {
		// TODO Auto-generated method stub
		try {
			System.out.println("sendMail()");
			MimeMessage message = new MimeMessage(session);
			DataHandler handler = new DataHandler(new ByteArrayDataSource(
					messageBody.getBytes(), "text/plain"));
			message.setSender(new InternetAddress(messageSender));
			message.setSubject(messageSubject);
			System.out.println("Subject set.");
			message.setDataHandler(handler);
			System.out.println("Data handler set.");
			if (messageRecipients.indexOf(',') > 0) {
				message.setRecipients(Message.RecipientType.TO,
						InternetAddress.parse(messageRecipients));
			} else {
				message.setRecipient(Message.RecipientType.TO,
						new InternetAddress(messageRecipients));
			}
			System.out.println("GmailSender" +
					"Attempting to send message to - " + messageRecipients
							+ " With message - subj: " + message.getSubject()
							+ " content: " + message.getContent().toString());
			if (message != null) {
				System.out.println("GmailSender" + "message is NOT null");
			}

			transport = session.getTransport("smtps");
			transport.connect(HOST, 465, emailLogin, emailPassword);

			transport.sendMessage(message, message.getAllRecipients());

			transport.close();
			/* Transport.send(message); */

			System.out.println("GmailSender" + "Sent message.");
		} catch (AddressException ae) {
			ae.printStackTrace();
			System.out.println("GmailSender" +
					"AddressException - " + ae.getLocalizedMessage());
		} catch (MessagingException me) {
			me.printStackTrace();
			System.out.println("GmailSender" +
					"MessagingException - " + me.getLocalizedMessage());
		} catch (Exception e) {
			e.printStackTrace();
			System.out.println("GmailSender" + "Exception - " + e.getLocalizedMessage());
		}
	}