Penguin Powered

VeeP - The Very Easy Email Program


SmtpClient.class


SmtpClient creates a connection to an SMTP server and provides methods for transmitting messages via the server.

Known Issues - I know passing a string as the body of the message isn't a great system - so far all I've been concerned with is getting this class functional - at some point I'm going to have to put some effort into making it useful.

Methods

SmtpClient(int, String) - The constructor creates a socket connection to the mail server specified by the String arg on the port specified by the int.
from(String) - specifies the sender for the message.
rcpt(String) - specifies a recipient for the message.
message(String) - the String contains the text of the message.
quit() - disconnects from the server.