package com.yc.crm.mail.service; import com.yc.crm.mail.entity.FoundationEntity; import com.yc.crm.mail.entity.T482102Entity; import com.yc.crm.mail.entity.t482101HEntity; import javax.mail.Message; import javax.mail.MessagingException; import javax.servlet.http.HttpServletRequest; import java.io.IOException; /** * @BelongsProject: eCoWorksV3 * @BelongsPackage: com.yc.crm.mail.service * @author: xinyb * @CreateTime: 2024-09-12 10:30 * @Description: */ public interface MailServiceIfc { /** * 收邮件 * * @param emailEntity * @return */ abstract void receivingEmails(T482102Entity emailEntity, FoundationEntity foundation) throws MessagingException; /** * 发邮件 * * @param t482101H 邮件信息 * @param request * @throws MessagingException * @throws IOException */ abstract void sendEmails(t482101HEntity t482101H, HttpServletRequest request) throws Exception; /** * 快速回复 * @param docCode * @param content * @return */ Integer setQuickReply(String docCode,String content) throws MessagingException; /** * 保存邮件内容 * @param messages * @param email * @param foundation */ public void setMailContent(Message[] messages, T482102Entity email, FoundationEntity foundation,boolean hasPush)throws Exception; }