Releasing a connection |
![]() ![]() ![]() |
To disconnect from an SMTP server, invoke the Smtp#disconnect method. You should always disconnect from the SMTP server when ending your session.
Example
// disconnect from SMTP server smtp.disconnect(); |