This method create new SMTPSession object.
This method opens TCP connection and start SMTP session. If session had been started, do nothing and return false.
This method sends 'mailsrc' as mail. SMTPSession read strings from 'mailsrc' by calling 'each' iterator, and convert them into "\r\n" terminated string when write.
SMTPSession's Exceptions are:
This method closes SMTP session. If session had not started, do nothind and return false.
This method send "HELO" command and start SMTP session.
helo_domain is localhost's FQDN.
This method sends "MAIL FROM" command.
from_addr is your mail address(????@????).
This method sends "RCPT TO" command.
to_addrs is array of mail address(???@???) of destination.
This method send 'mailsrc' as mail. SMTP reads strings from 'mailsrc' by calling 'each' iterator.
This method sends "QUIT" command and ends SMTP session.