1
2
3
4
5
6
7
8
9
10
11 package com.atlassian.mail.server;
12
13 import com.atlassian.mail.Email;
14 import com.atlassian.mail.MailConstants;
15 import com.atlassian.mail.MailException;
16 import com.atlassian.mail.MailProtocol;
17
18 import java.io.PrintStream;
19
20 public interface SMTPMailServer extends MailServer
21 {
22 @Deprecated
23 String DEFAULT_SMTP_PORT = MailConstants.DEFAULT_SMTP_PORT;
24
25 String getDefaultFrom();
26
27 void setDefaultFrom(String from);
28
29 String getPrefix();
30
31 void setPrefix(String prefix);
32
33 boolean isSessionServer();
34
35 void setSessionServer(boolean sessionServer);
36
37 String getJndiLocation();
38
39 void setJndiLocation(String jndiLocation);
40
41 public boolean isRemovePrecedence();
42
43 public void setRemovePrecedence(boolean precedence);
44
45 void send(Email email) throws MailException;
46
47 void quietSend(Email email) throws MailException;
48
49
50
51
52
53
54 void setDebug(boolean debug);
55
56
57
58
59
60 void setDebugStream(PrintStream debugStream);
61
62
63
64
65 boolean getDebug();
66
67
68
69
70 PrintStream getDebugStream();
71
72 boolean isTlsRequired();
73
74 void setTlsRequired(boolean tlsRequired);
75
76
77 }