Mail
Address
Remove description/name:
import javax.mail.internet.InternetAddress;
final InternetAddress internetAddress
= new InternetAddress("Patrick Kimber <me@mycompany.com>");
final String result = internetAddress.getAddress();
assertEquals("me@mycompany.com", result);
Links
Articles
Receiving in JavaMail:
../../misc/howto/java/receiving-in-javamail.pdf
Copy of article by DJ Walker-Morgan, Builder UK
Components
SubEthaSMTP is a easy to understand Java library which provides a receptive SMTP server component. SubEthaSMTP’s simple, low-level API is suitable for writing almost any kind of mail-receiving application.
Testing
The Dumbster is a very simple fake SMTP server designed for unit and system testing applications that send email messages.
Sample
Client
DNS
Network, DNS, Network
SMTP
MailHostsLookup.java
:../../misc/howto/java/MailHostsLookup.java
List MX (Mail Exchange) servers for a domain, using a DNS (Domain Name System) lookup. Copy of code written by Shayne Steele