ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/util/uk/org/iscream/cms/util/Smtp.java
(Generate patch)

Comparing projects/cms/source/util/uk/org/iscream/cms/util/Smtp.java (file contents):
Revision 1.1 by tdb, Mon Feb 5 03:14:15 2001 UTC vs.
Revision 1.2 by tdb, Mon Feb 5 04:03:07 2001 UTC

# Line 43 | Line 43 | public class Smtp {
43      public Smtp(String server, int port) throws IOException {
44          _socket = new Socket(server, port);
45          _socketIn = new BufferedReader(new InputStreamReader(_socket.getInputStream()));
46 <        _socketOut = new PrintWriter(_socket.getOutputStream());
46 >        _socketOut = new PrintWriter(new BufferedWriter(new OutputStreamWriter(_socket.getOutputStream())), true);
47 >        _socketIn.readLine(); // get 220 welcome header
48          sendCommand("HELO " + InetAddress.getLocalHost().getHostName(), 250);
49      }
50  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines