{"id":3066,"date":"2020-01-30T08:10:22","date_gmt":"2020-01-30T07:10:22","guid":{"rendered":"http:\/\/www.capri-soft.de\/blog\/?p=3066"},"modified":"2020-01-30T08:10:22","modified_gmt":"2020-01-30T07:10:22","slug":"ibm-doors-dxl-send-email-via-doors-client","status":"publish","type":"post","link":"https:\/\/www.capri-soft.de\/blog\/?p=3066","title":{"rendered":"IBM Doors DXL: Send email via Doors Client"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Problem<\/h2>\n\n\n\n<p>Emails should be send via DXL script.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Prerequirements<\/h2>\n\n\n\n<p>The Doors Client should have access to a SMTP Server on it&#8217;s configured port (normally 25)<\/p>\n\n\n\n<p>Right-click the doors database icon in the database explorer and make the following setttings:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"474\" height=\"528\" data-attachment-id=\"3067\" data-permalink=\"https:\/\/www.capri-soft.de\/blog\/?attachment_id=3067\" data-orig-file=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/01\/image-2.png?fit=613%2C683&amp;ssl=1\" data-orig-size=\"613,683\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"image-2\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/01\/image-2.png?fit=474%2C528&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/01\/image-2.png?resize=474%2C528&#038;ssl=1\" alt=\"\" class=\"wp-image-3067\" srcset=\"https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/01\/image-2.png?w=613&amp;ssl=1 613w, https:\/\/i0.wp.com\/www.capri-soft.de\/blog\/wp-content\/uploads\/2020\/01\/image-2.png?resize=269%2C300&amp;ssl=1 269w\" sizes=\"auto, (max-width: 474px) 100vw, 474px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Solution<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\nstring smtpServer = getDatabaseMailServer();\nstring smtpFrom = &quot;Superman&quot;;\nstring smtpFrom2 = getDatabaseMailServerAccount();\nstring smtpTo = &quot;bjoern.karpenstein@test.com&quot;;\nstring smtpSubject = &quot;test&quot;;\nstring smtpMessage = &quot;this is a test&quot;;\n\nprint &quot;Mail Server Name: &quot; smtpServer &quot;\\n&quot;;\nprint &quot;Mail from account: &quot; smtpFrom2 &quot;\\n\\n&quot;;\nbool b = sendEMailNotification(smtpFrom, smtpTo, smtpSubject, smtpMessage);\n\nif (b) {\n   print &quot;Message sent\\n&quot;;\n} else {\n   print &quot;Could not send message.\\n&quot;;\n}\n<\/pre><\/div><iframe src=\"http:\/\/www.facebook.com\/plugins\/like.php?href=https%3A%2F%2Fwww.capri-soft.de%2Fblog%2F%3Fp%3D3066&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light\" scrolling=\"no\" frameborder=\"0\" allowTransparency=\"true\" style=\"border:none; overflow:hidden; width:450px;margin-top:5px;\"><\/iframe>","protected":false},"excerpt":{"rendered":"<p>Problem Emails should be send via DXL script. Prerequirements The Doors Client should have access to a SMTP Server on it&#8217;s configured port (normally 25) Right-click the doors database icon in the database explorer and make the following setttings: Solution<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[22,19],"tags":[84,83,82,85],"class_list":["post-3066","post","type-post","status-publish","format-standard","hentry","category-dxl","category-ibm-doors","tag-dxl","tag-email","tag-ibm-doors","tag-send-mail"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4yGeN-Ns","jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3066","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3066"}],"version-history":[{"count":1,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3066\/revisions"}],"predecessor-version":[{"id":3068,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=\/wp\/v2\/posts\/3066\/revisions\/3068"}],"wp:attachment":[{"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3066"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3066"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.capri-soft.de\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3066"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}