I am looking at WSO2's Ballerina programming language. I don't see the module or package that allows the ballerina code to call SMTP server and send email. The only thing close to SMTP is the Gmail connector, but that is not what I am looking for. I expect to write a Ballerina script to chain some services/endpoints but also want to trigger an email by utilizing the company's internal SMTP relay server. Does anybody have any idea?
You can import email module in ballerina org into your .bal file and send emails.
import ballerina/email;
Please refer to the following documentation depending on your Ballerina version path for email sending capabilities.
[1] Swan Lake Alpha2 - https://ballerina.io/learn/by-example/send-email.html
[2] V1.2.x - https://ballerina.io/1.2/learn/by-example/send-and-receive-emails.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With