question: public void testAttachmentHTML ( ) { EMail emailTest = new EMail ( System . getProperties ( ) , host , from , to , null , null ) ; emailTest . addTo ( to2 ) ; emailTest . addCc ( to3 ) ; emailTest . setMessageHTML ( "TestAttachmentHTML" , "Test Attachment HTML Message" ) ; emailTest . addAttachment ( new File ( "C:\\Adempiere\\RUN_Adempiere.sh" ) ) ; emailTest . createAuthenticator ( usr , pwd ) ; assertEquals ( emailTest . send ( ) , EMail . SENT_OK ) ; }
target:  Test sending to internal public void testInternal() { EMail emailTest = new EMail(host, from, from, "TestInternal", "Test Internal Message"); assertEquals(emailTest.send(), EMail.SENT_OK); }	//	testInternal / Test sending to internal authenticated public void testInternalAuthenticate() { EMail emailTest = new EMail(host, from, from, "TestInternalAuthenticate", "Test Internal Authenticate Message"); emailTest.setEMailUser(usr, pwd); assertEquals(emailTest.send(), EMail.SENT_OK); }	//	testInternalAuthenticate / Test sending to external public void testExternal() { EMail emailTest = new EMail(host, from, to, "TestExternal", "Test External Message"); assertNotSame(emailTest.send(), EMail.SENT_OK); }	//	testExternal / Test sending to external authenticated public void testExternalAuthenticate() { EMail emailTest = new EMail(host, from, to, "TestExternalAuthenticate", "Test External Authenticate Message"); emailTest.setEMailUser(usr, pwd); assertEquals(emailTest.send(), EMail.SENT_OK); }	//	testExternalAuthenticate / Test sending HTML public void testHTML() { EMail emailTest = new EMail(host, from, to); emailTest.addCc(to2); emailTest.setMessageHTML("TestHTML", "Test HTML Message"); emailTest.setEMailUser(usr, pwd); assertEquals(emailTest.send(), EMail.SENT_OK); }	//	testHTML / Test sending Attachment public void testAttachment() { EMail emailTest = new EMail(host, from, to, "TestAttachment", "Test Attachment Message"); emailTest.addTo(to2); emailTest.addCc(to3); emailTest.addAttachment(new File("C:\\Adempiere\\RUN_Adempiere.sh")); emailTest.setEMailUser(usr, pwd); assertEquals(emailTest.send(), EMail.SENT_OK); }	//	testAttachmentHTML / Test sending Attachment HTML