public static void main( String[] args ) { System.out.println("Start Application"); ApplicationContext context = new ClassPathXmlApplicationContext("Spring-Mail.xml"); MailMail mm = (MailMail) context.getBean("mailMail"); //************************************************************************* String from = "test"; String to = "test"; String subject = "test"; String msg = "test"; mm.sendMail(from, to, subject, msg); System.out.println("mail succesfully send"); System.out.println("End Application"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)