private void email ( JsonSimple response , String oid , String text ) { JsonObject object = newMessage ( response , EmailNotificationConsumer . LISTENER_ID ) ; JsonObject message = ( JsonObject ) object . get ( "message" ) ; message . put ( "to" , emailAddress ) ; message . put ( "body" , text ) ; message . put ( "oid" , oid ) ; }
Generate an order to send an email to the intended recipient