voodoodyne / subethasmtp

SubEtha SMTP is a Java library for receiving SMTP mail
Other
349 stars 139 forks source link

bind SMTPClient #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Make it possible to specify the local socket address to which SMTPClient 
will bind. Currently the wildcard address is used always.

Patch is attached. It adds a new constructor to both SMTPClient and 
SmartClient. Another solution could be to create a non-connecting empty 
constructor and set all parameters in setters and in a new connect method. 
That would be similar to SMTPServer and the Java Socket class, and it is 
preferable if one or more additional parameters are needed. 
It is also interesting that the already supplied helo name usually equals 
the desired bind address.

Original issue reported on code.google.com by hontvari@flyordie.com on 17 Sep 2009 at 1:41

Attachments:

GoogleCodeExporter commented 9 years ago
Patch applied!

Original comment by lhori...@gmail.com on 28 Sep 2009 at 8:14