VaporSMTPKit
VaporSMTPKit copied to clipboard
async/await
This pull request refactors the SMTP mailing functions to utilize async/await for improved concurrency and error handling. The changes include updating the sendMails
and sendMail
functions to be asynchronous and to use try await
for handling potential errors.
Additionally, the sendMail
function now internally utilizes the sendMails
function with a single mail, providing a more consistent API. These updates enhance the efficiency and reliability of the mailing functionality.