通过Java接口,可以在服务器端调用邮件服务
//注入邮件服务 @Autowirte IEmailService emailService; //调用服务发送邮件 //email:目标邮件地址 //content: 要发送的内容 emailService.send(email,content);