Re: Do I need to install a SMTP server before using javamail.
Posted By:
Robert_Lybarger
Posted On:
Monday, May 14, 2007 08:33 PM
Well, yeah ... "javamail" API is just a fancy wrapper around opening a TCP socket connection on port 25 of some server and sending SMTP command statements to it. That's all. Twenty lines of code and you can get rid of javamail for all simple messages. (In fact, I usually do just that.) So, yes ... you actually need to provide a real SMTP-based mail transfer agent somewhere that you point the javamail configuration at. (Examples include sendmail in the UNIX world and MS Exchange in the Windows world.)