• Welcome to KonaKart Community Forum. Please login or sign up.
 

Sending email to admin user

Started by markb, September 02, 2013, 04:02:13 pm

Previous topic - Next topic

markb

What is the best way to send an email to the admin user from a JSP action class? I tried:

    CustomerIf adminUser = kkAppEng.getAdminUser();
    int adminId = adminUser.getId();         
    EmailOptionsIf options = new EmailOptions();
    options.setFromAddress("admin@mystore.com");
    options.setReplyToAddress("admin@mystore.com");
   kkAppEng.getEng().sendTemplateEmailToCustomer1(adminId, "Test -- Alert from Action", options);   

but the adminUser returned is null. I have an admin user defined in the konakartadmin application. Is there a better way to do tihs?