Email via Python using Gateway defined SMTP server settings?

How can I send an email from a Python script using the SMTP settings stored in the Gateway config? (e.g. under Gateway Config -> Networking -> Email Settings)?

Nevermind, Friday afternoon…

You can specify to use an SMTP profile within the function system.net.sendEmail(…)

With system.net.sendEmail