Project

General

Profile

« Previous | Next » 

Revision 53917

HelloWorldService.java: Add 'testEmail' get method to send test email to specific users (Argiro K. & Konstantina G.) for some test community - path: 'test-email'.

View differences:

HelloWorldService.java
1421 1421

  
1422 1422
    @GET
1423 1423
    @Path("email-notifications")
1424
    //@Produces(MediaType.APPLICATION_JSON)
1425 1424
    public void forceSendEmailNotifications() {
1426 1425
        emailSender.run();
1427 1426
    }
1428 1427

  
1428
    @GET
1429
    @Path("test-email")
1430
    public void testEmail() {
1431
        ArrayList<String> list = new ArrayList<String>();
1432
        list.add("konstantinagalouni@gmail.com");
1433
        list.add("argirok@di.uoa.gr");
1434
        emailSender.send("openaire_id_test", "openaire_name_test", "community", list);
1435
    }
1429 1436
}

Also available in: Unified diff