{"id":7125,"date":"2026-03-18T10:30:55","date_gmt":"2026-03-18T01:30:55","guid":{"rendered":"https:\/\/dandelions.co.jp\/blog\/?p=7125"},"modified":"2026-03-18T10:30:55","modified_gmt":"2026-03-18T01:30:55","slug":"engineer-blog-sending-emails-in-outsystems","status":"publish","type":"post","link":"http:\/\/dandelions.co.jp\/blog\/blog\/2026\/03\/18\/engineer-blog-sending-emails-in-outsystems\/","title":{"rendered":"Engineer Blog: Sending Emails in OutSystems"},"content":{"rendered":"\n<p>In this engineer blog, I introduce the topics I study and work on in my daily learning.<\/p>\n\n\n\n<h2>Today\u2019s Topic: Sending Emails in OutSystems<\/h2>\n\n\n\n<p>In OutSystems, you can send emails from screens or batch processes by using your own mail server. <br>In this post, I\u2019ll walk through how to configure the environment and how to create a test screen.<\/p>\n\n\n\n<h2>Preparation: What You Need to Have Ready in Advance<\/h2>\n\n\n\n<p>OutSystems alone cannot send emails.<br>You need to prepare an email server in advance and make note of the following information:<br>\uff031.SMTP server<br>\uff032.SMTP port number<br>\uff033.Username (email address)<br>\uff034.Password<br>Depending on the type of mail server, there may also be options such as \u2018restrictions on sending from overseas.\u2019<br>If such a setting exists, be sure to turn it off.<br>Otherwise, you may encounter errors like \u2018Sender address rejected: Incorrect country code US,\u2019 which can prevent email delivery even when your configuration is correct.<\/p>\n\n\n\n<h2>Step 1: Environment Setup<\/h2>\n\n\n\n<p>First, enter the mail server information that OutSystems will use from Service Center. In Service Studio, click the gear icon shown below to access Service Center.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"600\" height=\"169\" src=\"https:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-1-1.png\" alt=\"\" class=\"wp-image-7126\" srcset=\"http:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-1-1.png 600w, http:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-1-1-300x85.png 300w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/figure>\n\n\n\n<p>After logging in, open the email server settings by selecting <em>Administration > Email<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"751\" height=\"727\" src=\"https:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-2-1.png\" alt=\"\" class=\"wp-image-7127\" srcset=\"http:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-2-1.png 751w, http:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-2-1-300x290.png 300w\" sizes=\"(max-width: 706px) 89vw, (max-width: 767px) 82vw, 740px\" \/><\/figure>\n\n\n\n<p>Enter the following information as shown below:<br>\u30fbSMTP Server: Preparation #1<br>\u30fbSMTP Port: Preparation #2<br>\u30fbUsername: Preparation #3<br>\u30fbPassword: Preparation #4<br>\u30fbDefault Sender Email: Preparation #3<br>\u30fbRedirect Emails To Test List: Optional<br>\u3000\uff0a<em>This option redirects emails to the Test List Addresses even if the logic specifies a different recipient.<\/em> <br>\u3000\u3000<em>Enable this for testing purposes.<\/em><br>\u30fbTest List Addresses: Optional<br>\u3000\uff0aSpecify the email address to which messages will be redirected.<br><br>After entering all the information, click the <strong>\u2018<\/strong>Save and Apply Settings to the Factory<strong>\u2019<\/strong> button to apply the configuration. <br>\u3000\uff0a<em>Note: Simply clicking \u2018Save\u2019 does not activate the email settings.<\/em> <br>\u3000\u3000<em>Also, the Password field will appear blank after saving, but as long as the configuration is correct, emails will still be sent without any issues.<\/em><\/p>\n\n\n\n<figure class=\"wp-container-2 wp-block-gallery-1 wp-block-gallery has-nested-images columns-default is-cropped\">\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" width=\"778\" height=\"733\" data-id=\"7128\"  src=\"https:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-5-1.png\" alt=\"\" class=\"wp-image-7128\" srcset=\"http:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-5-1.png 778w, http:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-5-1-300x283.png 300w, http:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-5-1-768x724.png 768w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/figure>\n<\/figure>\n\n\n\n<h2>Step 2: Creating the Logic<\/h2>\n\n\n\n<p>This time, we will create a simple test screen and the logic for sending emails, as shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"950\" height=\"295\" src=\"https:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-6-1.png\" alt=\"\" class=\"wp-image-7129\" srcset=\"http:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-6-1.png 950w, http:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-6-1-300x93.png 300w, http:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-6-1-768x238.png 768w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption><strong>\u2460 Test Screen: Enter the recipient, subject, and message body, then click the <\/strong><em><strong>SendMail<\/strong><\/em><strong> button to send an email based on the entered values.<\/strong><\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"1024\" height=\"403\" src=\"https:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-9-1024x403-1.png\" alt=\"\" class=\"wp-image-7130\" srcset=\"http:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-9-1024x403-1.png 1024w, http:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-9-1024x403-1-300x118.png 300w, http:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-9-1024x403-1-768x302.png 768w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption><strong>\u2461 Email Body Screen: The value received through the <\/strong><em><strong>InBody<\/strong><\/em><strong> input parameter is displayed directly as the email body.<\/strong><\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"372\" height=\"401\" src=\"https:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-7-1.png\" alt=\"\" class=\"wp-image-7132\" srcset=\"http:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-7-1.png 372w, http:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-7-1-278x300.png 278w\" sizes=\"(max-width: 372px) 100vw, 372px\" \/><figcaption><strong>\u2462 Client Action: This action is triggered when the <\/strong><em><strong>SendMail<\/strong><\/em><strong> button is clicked. It calls the server action responsible for sending the email.<\/strong><\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"1010\" height=\"671\" src=\"https:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-8-1.png\" alt=\"\" class=\"wp-image-7133\" srcset=\"http:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-8-1.png 1010w, http:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-8-1-300x199.png 300w, http:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-8-1-768x510.png 768w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption>\u2463 Server Action: This action is called from the Client Action. It sends the email according to the layout created in step \u2461<\/figcaption><\/figure>\n\n\n\n<h2>Testing the Functionality<\/h2>\n\n\n\n<p>Once the 1\u2011Click Publish completes successfully, open the screen and try running it.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"1024\" height=\"236\" src=\"https:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-11-1024x236-1.png\" alt=\"\" class=\"wp-image-7134\" srcset=\"http:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-11-1024x236-1.png 1024w, http:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-11-1024x236-1-300x69.png 300w, http:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-11-1024x236-1-768x177.png 768w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption><strong>Example Input: To verify the redirect behavior, enter an email address in the top recipient field that is <\/strong><em><strong>different<\/strong><\/em><strong> from the one configured in Test List Addresses.<\/strong><\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"494\" height=\"197\" src=\"https:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-12-1.png\" alt=\"\" class=\"wp-image-7135\" srcset=\"http:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-12-1.png 494w, http:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-12-1-300x120.png 300w\" sizes=\"(max-width: 494px) 100vw, 494px\" \/><figcaption>The email that was actually received at the address specified in Test List Addresses.<\/figcaption><\/figure>\n\n\n\n<p>The top section shows the value of the Default Sender Email. <br>You can also see that the recipient field contains the address entered on the screen (which is different from the one specified in Test List Addresses), confirming that the redirect feature is working as expected.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"1024\" height=\"310\" src=\"https:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-14-1024x310-1.png\" alt=\"\" class=\"wp-image-7136\" srcset=\"http:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-14-1024x310-1.png 1024w, http:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-14-1024x310-1-300x91.png 300w, http:\/\/dandelions.co.jp\/blog\/wp\/wp-content\/uploads\/2026\/03\/image-14-1024x310-1-768x233.png 768w\" sizes=\"(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><figcaption>Email sending logs in Service Center.<\/figcaption><\/figure>\n\n\n\n<p>From <em>Monitoring > Email<\/em>, you can check the subject, sender\/recipient email addresses, email size, and status. <br>In particular, the status may show <em>Sent<\/em> (success), <em>Pending<\/em> (waiting), or <em>Error<\/em> (failed). When an error occurs, you can click the <em>Detail<\/em> link to view the error information, which helps identify the cause.<\/p>\n\n\n\n<h2>Conclusion<\/h2>\n\n\n\n<p>With the above steps, you are now able to send emails from OutSystems. <br>However, one important point to keep in mind is that the actual email\u2011sending mechanism ultimately depends on the mail server. <br>Be sure to review the mail server settings carefully to ensure they meet your requirements\u2014for example, limits on the number of emails that can be sent per hour, or restrictions on sending or receiving emails from specific addresses.<\/p>\n\n\n\n<p>Stay tuned for the next developer blog\u2026<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this engineer blog, I introduce the topics I study and work on in my daily learning. Today\u2019s Topic: Sending &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/dandelions.co.jp\/blog\/blog\/2026\/03\/18\/engineer-blog-sending-emails-in-outsystems\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Engineer Blog: Sending Emails in OutSystems&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[8],"tags":[40,9],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/paR9rw-1QV","_links":{"self":[{"href":"http:\/\/dandelions.co.jp\/blog\/wp-json\/wp\/v2\/posts\/7125"}],"collection":[{"href":"http:\/\/dandelions.co.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/dandelions.co.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/dandelions.co.jp\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/dandelions.co.jp\/blog\/wp-json\/wp\/v2\/comments?post=7125"}],"version-history":[{"count":2,"href":"http:\/\/dandelions.co.jp\/blog\/wp-json\/wp\/v2\/posts\/7125\/revisions"}],"predecessor-version":[{"id":7138,"href":"http:\/\/dandelions.co.jp\/blog\/wp-json\/wp\/v2\/posts\/7125\/revisions\/7138"}],"wp:attachment":[{"href":"http:\/\/dandelions.co.jp\/blog\/wp-json\/wp\/v2\/media?parent=7125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/dandelions.co.jp\/blog\/wp-json\/wp\/v2\/categories?post=7125"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/dandelions.co.jp\/blog\/wp-json\/wp\/v2\/tags?post=7125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}