How to properly implement Email Connector in Mendix 10.6 to send emails using SMTP server.
0
Hello Community, I am working on a Mendix 10.6 application and I need to implement the Email Connector to send emails from my app. I have already downloaded the Email Connector module from the Marketplace, but I am a bit confused about the correct configuration steps and how to use it in a microflow. Here is what I want to achieve: Configure an Email Account (SMTP details like Gmail/Outlook). Store the password securely using the Encryption module. Send an email with the following details: From address To address (single or multiple) Subject line Body (plain text or HTML) Optionally, attachments I have a few doubts: What is the correct way to create and send an EmailMessage object? Is there any working microflow example to send a simple email that I can follow? For Gmail/Outlook accounts, do I need to use App Passwords instead of the normal password? It would be very helpful if someone can provide step-by-step guidance (from setting up the account to sending the first test email). Thanks in advance 🙏
asked
V Vinayaka Rao Jonnada
1 answers
0
Hello,
I would recommend exploring Email_Connector module by using the built-in microflows and overview pages. Here's a quick way to get things up and running, if not already done:
Below are a few steps to get going:
Add a Menu Item to Launch the Overview Page:
Go to the Navigation section in your base app.
Under the Menu, add a new item.
Set it to call the microflow: ACT_EmailAccount_LaunchEmailConnectorOverview from the Email_Connector module.
Save everything and run the app.
Once it’s live, click on the new menu item — it’ll open a page where you can:
Set up your email account
Create email templates
Try sending a test email.
SMTP Details:
You’ll need the SMTP settings of the email provider you want to use (like Gmail or Outlook). This is not the Gmail's email accounts user-id and password. You need to have it configured in Gmail, and this should get you a user-id and password for sending emails (knows as SMTP account credentials). Make sure you have those handy.
Give it a google search for the setup needed to use Gmail for sending emails.
Note:
Check out the USEME folder inside the Email_Connector module — it has everything you need to get started.
There’s also a Sample folder under USEME with ready-made examples you can use for creating Objects.
And don’t forget to take a look at the module’s documentation on the Mendix Marketplace — it’s super helpful.