Implementing an SMTP Server with JavaMail
1. Does the JavaMail API provide an implementation of an SMTP Server?
2. If not, does the JavaMail API architecture make provisions for an implementation of such a server?
3. Has anyone done this work before, would there be some sort of SMTP Server implementation out there done under the JavaMail API or even a non-JavaMail API one?
I greatly appreciate any responses.
Thanks,
Michael
Thanks for clarifying this for me. The docs are a bit vague on this. If you know of any SMTP implementations I would be interested to know.
If anyone from Sun is listening, I think that an SMTP server functionality should be integrated into JavaMail. In some cases it is necessary to have an application communciate with another via email.
> 1. No, it is designed to use an SMTP server;
> in effect it is an SMTP client.
>
> 2. See 1.
>
> 3. Somebody may have written an SMTP server in Java
> but that's nothing to do with JavaMail (see 1.)
well, I'm not from Sun...I've heard that Apache jakarta-james of the java mail server is implemented with Java, and part of this seems to be implemented with JavaMail.see below... http://jakarta.apache.org/james/index.html
I've implemented a Java package to :
1. find physical SMTP server for a given domain (e.g. yahoo.com).
2. Send email (message + attachments) to the server.
Benefits:
- No SMTP server is required (since its functionality is built in).
- No JavaMail is required.
- Simple interface.
Please write to me if you have more interests in this discussion since this post is out-of-date.
qizhi@sinotar.com