What is the role of `Transport.send()` in sending emails in Java?
The `Transport.send()` method sends the message to a default SMTP server that Java is configured with.
That's partially correct. While `Transport.send()` does send the message, you must configure the SMTP server explicitly in the session.
Could you describe how to configure a custom SMTP server for sending an email using JavaMail?