xinyb
3 天以前 3b74e3df72726e188d36393ecfd7964d095ef7e8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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;
}