private void sendMailToQueue(String to,String subject,String content,boolean isMultipart,boolean isHtml){
  EmailParams emailParams=new EmailParams(to,subject,content,isMultipart,isHtml);
  rabbitTemplate.convertAndSend(RabbitmqConfiguration.QUEUE_SEND_EMAIL,emailParams);
}

private void sendMailToQueue ( String to , String subject , String content , boolean isMultipart , boolean isHtml ) { EmailParams emailParams = new EmailParams ( to , subject , content , isMultipart , isHtml ) ; rabbitTemplate . convertAndSend ( RabbitmqConfiguration . QUEUE_SEND_EMAIL , emailParams ) ; }
send emails via rabbitmq queue
