Frames
diff --git a/docs/sh/hell/jsmtp/SMTPAddress.html b/docs/sh/hell/jsmtp/SMTPAddress.html
index 4847404..257c3f7 100644
--- a/docs/sh/hell/jsmtp/SMTPAddress.html
+++ b/docs/sh/hell/jsmtp/SMTPAddress.html
@@ -98,7 +98,7 @@ Class SMTPAddress
java.lang.Object
-sh.hell.jsmtp.SMTPAddress
+ sh.hell.jsmtp.content.SMTPAddress
diff --git a/docs/sh/hell/jsmtp/client/SMTPClient.html b/docs/sh/hell/jsmtp/client/SMTPClient.html
index 47fcf4d..24515a1 100644
--- a/docs/sh/hell/jsmtp/client/SMTPClient.html
+++ b/docs/sh/hell/jsmtp/client/SMTPClient.html
@@ -20,25 +20,17 @@
var methods = {
"i0": 10,
"i1": 10,
- "i2": 10,
- "i3": 10,
+ "i2": 9,
+ "i3": 9,
"i4": 10,
"i5": 10,
- "i6": 9,
- "i7": 9,
+ "i6": 10,
+ "i7": 10,
"i8": 10,
"i9": 10,
- "i10": 10,
+ "i10": 9,
"i11": 10,
- "i12": 10,
- "i13": 10,
- "i14": 10,
- "i15": 9,
- "i16": 9,
- "i17": 10,
- "i18": 10,
- "i19": 10,
- "i20": 10
+ "i12": 10
};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
@@ -150,46 +142,42 @@
Field Summary
Field and Description
-java.util.HashMap<java.lang.String,java.lang.String>
-emailHeaders
-
-
boolean
extendedSMTP
-
+
java.lang.String
hostname
-
+
java.util.Scanner
scanner
-
+
java.util.ArrayList<java.lang.String>
serverCapabilities
-
+
java.lang.String
serverHostname
-
+
java.lang.String
serverIP
-
+
short
serverPort
-
+
java.lang.String
serverWelcomeMessage
-
+
javax.net.ssl.TrustManager[]
trustManagers
-
+
java.io.OutputStreamWriter
writer
@@ -232,106 +220,75 @@
Method Summary
Method and Description
-SMTPClient
-addHeader (java.lang.String name,
- java.lang.String value)
-Creates a header or appends to its value if it already exists.
-
-
-
-SMTPClient
-bcc (SMTPAddress smtpAddress)
-
-
-SMTPClient
-cc (SMTPAddress smtpAddress)
-
-
void
close ()
-
+
SMTPClient
flush ()
-
-SMTPClient
-from (SMTPAddress smtpAddress)
-Specifies the given address as the email sender, and starts TLS if the server requires it.
-
-
-
+
static SMTPClient
-fromAddress (SMTPAddress address)
+ fromAddress (SMTPAddress address)
+
-
+
static SMTPClient
fromServer (java.lang.String serverIP)
-
+
SMTPClient
hello (java.lang.String hostname)
Sends EHLO (or HELO) to the server, and STARTTLS if supported.
-
- SMTPClient
- hello (java.lang.String hostname,
- boolean ignoreEncryption)
- Sends EHLO (or HELO) to the server, and STARTTLS if supported.
-
+
+ SMTPClient
+ hello (java.lang.String hostname,
+ boolean ignoreEncryption)
+ Sends EHLO (or HELO) to the server, and STARTTLS if supported.
+
-
+
boolean
isEncrypted ()
-
+
boolean
isOpen ()
-
+
SMTPResponse
readResponse ()
-
-SMTPClient
-removeHeader (java.lang.String name)
-
-
+
SMTPResponse
-send (SMTPContent _body)
-
-
-static SMTPResponse
-sendMail (SMTPAddress from,
- SMTPAddress to,
- java.lang.String subject,
- SMTPContent content)
+ send (SMTPMail mail)
+
-
+
static SMTPResponse
-sendMail (java.lang.String from,
- java.lang.String to,
- java.lang.String subject,
- SMTPContent content)
-
-
-SMTPClient
-subject (java.lang.String subject)
-Sets the subject header or appends to it if already present.
-
-
-
-SMTPClient
-to (SMTPAddress smtpAddress)
+ sendMail (SMTPMail mail)
+
-
+
boolean
-verify (SMTPAddress address)
+ verify (SMTPAddress address)
+
-
+
SMTPClient
write (java.lang.String message)
@@ -402,15 +359,6 @@
serverCapabilities
public final java.util.ArrayList<java.lang.String> serverCapabilities
-
-
-
-
@@ -507,16 +455,15 @@
SMTPClient
Method Detail
-
+
sendMail
-public static SMTPResponse sendMail(java.lang.String from,
- java.lang.String to,
- java.lang.String subject,
- SMTPContent content)
+ public static SMTPResponse sendMail(SMTPMail mail)
throws javax.naming.NamingException,
java.io.IOException,
SMTPException
@@ -528,34 +475,16 @@ sendMail
-
-
-
-
-
+
-
-
-
-
-
-from
-public SMTPClient from(SMTPAddress smtpAddress)
- throws java.io.IOException,
- SMTPException
-Specifies the given address as the email sender, and starts TLS if the server requires it.
-
-Parameters:
-smtpAddress
- The sender address.
Returns:
this
Throws:
@@ -711,61 +616,14 @@ from
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-addHeader
-public SMTPClient addHeader(java.lang.String name,
- java.lang.String value)
- throws SMTPException
-Creates a header or appends to its value if it already exists.
-
-Parameters:
-name
- The name of the header.
-value
- The value of the header.
-Returns:
-this
-Throws:
-SMTPException
- If the header name contains a colon, making it invalid.
-
-
-
-
-
-
-
-
+
send
-public SMTPResponse send(SMTPContent _body)
+ public SMTPResponse send(SMTPMail mail)
throws java.io.IOException,
SMTPException
diff --git a/docs/sh/hell/jsmtp/client/SMTPResponse.html b/docs/sh/hell/jsmtp/client/SMTPResponse.html
index 42b04ac..ba93426 100644
--- a/docs/sh/hell/jsmtp/client/SMTPResponse.html
+++ b/docs/sh/hell/jsmtp/client/SMTPResponse.html
@@ -73,13 +73,13 @@
@@ -115,6 +115,34 @@ Class SMTPResponse
+
+
+
+
+
+ Field Summary
+
+ Fields
+
+ Modifier and Type
+ Field and Description
+
+
+ java.util.ArrayList<java.lang.String>
+ lines
+
+
+
+ java.lang.String
+ status
+
+
+
+
+
@@ -147,6 +175,32 @@ Methods inherited from class java.lang.Object
+
+
@@ -219,13 +273,13 @@ toString
diff --git a/docs/sh/hell/jsmtp/content/SMTPAddress.html b/docs/sh/hell/jsmtp/content/SMTPAddress.html
new file mode 100644
index 0000000..715bb24
--- /dev/null
+++ b/docs/sh/hell/jsmtp/content/SMTPAddress.html
@@ -0,0 +1,555 @@
+
+
+
+
+
+ SMTPAddress
+
+
+
+
+
+
+ JavaScript is disabled on your browser.
+
+
+
+
+
+
+
+
+
+ java.lang.Object
+
+
+ sh.hell.jsmtp.content.SMTPAddress
+
+
+
+
+
+
+
+
+
+
+
+
+ Field Summary
+
+ Fields
+
+ Modifier and Type
+ Field and Description
+
+
+ java.lang.String
+ mail
+ The email address.
+
+
+
+ java.lang.String
+ name
+ The name of the entity that owns this address.
+
+
+
+
+
+
+
+
+
+
+ Constructor Summary
+
+ Constructors
+
+ Constructor and Description
+
+
+ SMTPAddress (java.lang.String mail)
+
+
+
+ SMTPAddress (java.lang.String name,
+ java.lang.String mail)
+
+
+
+
+
+
+
+
+
+
+ Method Summary
+
+
+
+
+
+ Methods inherited from class java.lang.Object
+ clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait,
+ wait
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Constructor Detail
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Method Detail
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ getMailServers
+ public java.lang.String[] getMailServers()
+ throws javax.naming.NamingException
+ Gets servers responsible for this address, even when no MX record is
+ set.
+
+
+ Returns:
+ Servers responsible for this address.
+ Throws:
+ javax.naming.NamingException
- When a DNS error occurred.
+
+
+
+
+
+
+
+
+ isValid
+ public boolean isValid()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/sh/hell/jsmtp/content/SMTPAttachment.html b/docs/sh/hell/jsmtp/content/SMTPAttachment.html
index e46fb1a..2a1738b 100644
--- a/docs/sh/hell/jsmtp/content/SMTPAttachment.html
+++ b/docs/sh/hell/jsmtp/content/SMTPAttachment.html
@@ -47,7 +47,8 @@
@@ -368,7 +369,8 @@ toString
diff --git a/docs/sh/hell/jsmtp/content/SMTPContent.html b/docs/sh/hell/jsmtp/content/SMTPContent.html
index 0a04704..45173c2 100644
--- a/docs/sh/hell/jsmtp/content/SMTPContent.html
+++ b/docs/sh/hell/jsmtp/content/SMTPContent.html
@@ -74,13 +74,13 @@
Summary:
Nested |
Field |
-Constr |
+ Constr |
Method
@@ -141,6 +141,31 @@ Field Summary
+
+
+
+
+
+
+ Constructor Summary
+
+ Constructors
+
+ Constructor and Description
+
+
+ SMTPContent ()
+
+
+
+ SMTPContent (java.lang.String type)
+
+
+
+
@@ -157,7 +182,9 @@ Method Summary
static SMTPContent
from (java.util.HashMap<java.lang.String,java.lang.String> headers,
- java.lang.String body)
+ java.lang.String body)
+ Converts an email's headers & body into its SMTPContent representation.
+
abstract java.lang.String
@@ -209,6 +236,32 @@ type
+
+
+
+
+
+ Constructor Detail
+
+
+
+
+
+
+
+
+
+ SMTPContent
+ public SMTPContent()
+
+
+
+
@@ -301,13 +362,13 @@ toString
Summary:
Nested |
Field |
-Constr |
+ Constr |
Method
diff --git a/docs/sh/hell/jsmtp/content/SMTPEncoding.html b/docs/sh/hell/jsmtp/content/SMTPEncoding.html
index bf248f2..724bb52 100644
--- a/docs/sh/hell/jsmtp/content/SMTPEncoding.html
+++ b/docs/sh/hell/jsmtp/content/SMTPEncoding.html
@@ -48,7 +48,8 @@
Frames
@@ -393,7 +394,8 @@ decode
@@ -312,7 +313,8 @@ toString
diff --git a/docs/sh/hell/jsmtp/content/package-frame.html b/docs/sh/hell/jsmtp/content/package-frame.html
index 77cff7c..ace7869 100644
--- a/docs/sh/hell/jsmtp/content/package-frame.html
+++ b/docs/sh/hell/jsmtp/content/package-frame.html
@@ -12,8 +12,10 @@
+ SMTPAddress
+
+
+
SMTPAttachment
+
+ SMTPContent
+
+
-SMTPContent
+ SMTPMail
diff --git a/docs/sh/hell/jsmtp/content/package-tree.html b/docs/sh/hell/jsmtp/content/package-tree.html
index 26aa370..25b5d2e 100644
--- a/docs/sh/hell/jsmtp/content/package-tree.html
+++ b/docs/sh/hell/jsmtp/content/package-tree.html
@@ -79,6 +79,9 @@ Class Hierarchy
diff --git a/docs/sh/hell/jsmtp/exceptions/InvalidAddressException.html b/docs/sh/hell/jsmtp/exceptions/InvalidAddressException.html
index 095727d..bdf3950 100644
--- a/docs/sh/hell/jsmtp/exceptions/InvalidAddressException.html
+++ b/docs/sh/hell/jsmtp/exceptions/InvalidAddressException.html
@@ -42,7 +42,8 @@
Frames
@@ -220,7 +221,8 @@ InvalidAddressException
@@ -219,7 +220,8 @@ InvalidStateException
diff --git a/docs/sh/hell/jsmtp/exceptions/SMTPException.html b/docs/sh/hell/jsmtp/exceptions/SMTPException.html
index 8418f7c..0faaf52 100644
--- a/docs/sh/hell/jsmtp/exceptions/SMTPException.html
+++ b/docs/sh/hell/jsmtp/exceptions/SMTPException.html
@@ -115,7 +115,12 @@ Class SMTPException
Direct Known Subclasses:
-InvalidAddressException , TLSNegotiationFailedException
+ InvalidAddressException , InvalidHeaderException , TLSNegotiationFailedException
diff --git a/docs/sh/hell/jsmtp/exceptions/package-frame.html b/docs/sh/hell/jsmtp/exceptions/package-frame.html
index 2bdcca9..2ba9afa 100644
--- a/docs/sh/hell/jsmtp/exceptions/package-frame.html
+++ b/docs/sh/hell/jsmtp/exceptions/package-frame.html
@@ -13,6 +13,8 @@ Exceptions
+ InvalidHeaderException
+
+
+
InvalidStateException
-
+
SMTPException
-
+
TLSNegotiationFailedException
diff --git a/docs/sh/hell/jsmtp/exceptions/package-tree.html b/docs/sh/hell/jsmtp/exceptions/package-tree.html
index 942d9ec..76ef2f9 100644
--- a/docs/sh/hell/jsmtp/exceptions/package-tree.html
+++ b/docs/sh/hell/jsmtp/exceptions/package-tree.html
@@ -91,6 +91,9 @@ Class Hierarchy
sh.hell.jsmtp.exceptions.SMTPException
diff --git a/docs/sh/hell/jsmtp/package-frame.html b/docs/sh/hell/jsmtp/package-frame.html
index 59d9fbc..afec9ad 100644
--- a/docs/sh/hell/jsmtp/package-frame.html
+++ b/docs/sh/hell/jsmtp/package-frame.html
@@ -13,7 +13,6 @@ Classes