add Logic that integrate the email sender with Email Templates portlet