public static void sendMailSynchron(String subject, String content, String email, Boolean force) {
		// 先判断是否开启发邮件功能，如果未开启，直接退出。
//		String enable = "1";// PropertyManager.getInstance().getDbProperty(PropertyManager.DB_EMAIL_ENABLE);
//		if (!force && !enable.equals("0")) {
//			return;
//		}
		// 邮件服务器发送代码。
		try {
			JavaMailSender javaMailSenderImpl = getMailSender();
			MimeMessage msg = javaMailSenderImpl.createMimeMessage();
			MimeMessageHelper helper;
			helper = new MimeMessageHelper(msg, false, "utf-8");
			String from = "52673406@qq.com";//PropertyManager.getInstance().getDbProperty(PropertyManager.DB_EMAIL_FROM);
//			if (StringUtil.isBlank(from)) {
//				throw new MessagingException("发送地址不能为空");
//			}
//			if (StringUtil.isBlank(email)) {
//				throw new MessagingException("收信地址不能为空");
//			}
//			if (StringUtil.isBlank(subject)) {
//				throw new MessagingException("主题不能为空");
//			}
//			if (StringUtil.isBlank(content)) {
//				throw new MessagingException("内容不能为空");
//			}
			helper.setFrom(from);
			helper.setTo(email);
			helper.setSubject(subject);
			helper.setText(content, true);
			javaMailSenderImpl.send(msg);
		} catch (Exception e) {
		    e.printStackTrace();
		}
	}