Compilations of Java actions failed

-3
Buildfile: E:\Mendix\App-main\deployment\build_core.xml compile:     [javac] Compiling 39 source files to E:\Mendix\App-main\deployment\run\bin     [javac] E:\Mendix\App-main\javasource\smtpemailmodule\mail\EmailModule.java:12: error: package com.mendix.util.classloading does not exist     [javac] import com.mendix.util.classloading.Runner;     [javac]                                    ^     [javac] E:\Mendix\App-main\javasource\smtpemailmodule\mail\EmailModule.java:130: error: cannot find symbol     [javac]         new Runner<Object>()     [javac]             ^     [javac]   symbol:   class Runner     [javac]   location: class EmailModule     [javac] 2 errors BUILD FAILED E:\Mendix\App-main\deployment\build_core.xml:29: Compile failed; see the compiler error output for details. Total time: 2 seconds        
asked
1 answers
4

Hi Ravi,

This module is not updated to Mendix 7.13. You can file a support ticket to Mendix to do this, in the meantime you can replace the this part of the code with this:

 

	public static void mail(final SMTPConfiguration configuration, String htmlmsg, 
			String plainmsg, final String subject, final List<String> to, final List<String> cc, 
			final List<String> bcc, IContext context, final List<IMendixObject> attachments,
			final Map<String, String> headers) throws CoreException 
	{
		final Message message = new Message();
		message.setPlainBody(plainmsg);
		message.setHtmlBody(htmlmsg);
		
		final Sender sender = new Sender(context);
		
		new Thread(new Runnable() {
		    public void run() {
				try {
					sender.send(configuration, message, subject, to, cc, bcc, attachments, headers);
				} catch (Exception e) {
					Core.getLogger("smtp").error("Error sending mail", e);
				}
		    }
		}).start();
	}
}

 

answered