KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: markb on September 02, 2013, 04:02:13 pm

Title: Sending email to admin user
Post by: markb on September 02, 2013, 04:02:13 pm
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?