| 1234567891011121314151617181920212223242526272829303132 |
- /**
- *
- */
- package cn.com.lzt.sysbug.service;
- import cn.com.lzt.sysbug.entity.TSSysbugEntity;
- import cn.com.lzt.sysbug.entity.TSSysbugMailSender;
- /**
- * @author xzx
- *
- * 2019年4月6日
- *
- */
- public class TSSysbugUtils {
- public static boolean sendBugMail(TSSysbugEntity entit, String emailUserId, String title) {
- try {
- TSSysbugMailSender sender = new TSSysbugMailSender(entit,emailUserId, title);
- sender.sleep(3000);
- sender.start();
- }catch(Exception e) {
- e.printStackTrace();
- return false;
- }
- return true;
- }
-
- public static boolean sendBugMail(TSSysbugEntity entit, String emailUserId) {
- return sendBugMail(entit,emailUserId, null);
- }
- }
|