{"id":7223,"date":"2019-05-31T23:53:01","date_gmt":"2019-05-31T23:53:01","guid":{"rendered":"https:\/\/alt2.minisoft.com\/support\/?p=7223"},"modified":"2021-06-14T10:49:32","modified_gmt":"2021-06-14T17:49:32","slug":"setting-up-smtp-email-for-outlook-365","status":"publish","type":"post","link":"https:\/\/c002.minisoft.com\/support\/setting-up-smtp-email-for-outlook-365\/","title":{"rendered":"Setting up SMTP email for Outlook 365"},"content":{"rendered":"\n<p><strong>Prerequisite:<\/strong> You must have an Office 365 app password as documented at <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/user-help\/multi-factor-authentication-end-user-app-passwords\">https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/user-help\/multi-factor-authentication-end-user-app-passwords<\/a>.<\/p>\n\n\n\n<p>You can send email through your Office 365 server after you complete the follow steps to configure eFORMz:<\/p>\n\n\n\n<ol><li>Back up eFORMz.ini.<\/li><li>Open eFORMz.ini in a text editor such as Notepad++. The file should contain text similar to this. Your javaw.exe path, -mx, and -ms values might be different, but the jar files must match the jar files in your jar directory:  <p><code>.\\bin\\javaw.exe -mx1024M -ms128M --Xbootclasspath\/a:jars\/javax.mail-1.5.5.jar:jars\/jai-imageio-core-1.3.1.jar:jars\/activation.jar<\/code><\/p><\/li><li>Add the following line after the existing text in the file: <pre>-Dmail.smtp.starttls.enable=true -Dmail.smtp.ssl.trust=smtp.office365.com<\/pre><b>Note:<\/b> If encountering errors such as &#8220;Could not convert socket to TLS&#8221;,  &#8220;PKIX path building failed&#8221; or &#8220;unable to find valid certification path to requested&#8221;, make sure the following is in the file: <br><code>-Dmail.smtp.ssl.trust=smtp.office365.com<\/code><br><b>Note 2:<\/b> The &#8220;-D&#8221; definitions must be present before the &#8220;-jar&#8221; line. The sequence &#8220;-jar Run.jar&#8221; splits the processing of the command line. Those present before are part of the Java Runtime. The parameters after are past on to the application (Run.jar): <br><pre>params = 10\nparam00 = -mx4G\nparam01 = -ms512M\nparam02 = -Xbootclasspath\/a:jars\/javax.mail-1.5.5.jar;jars\/jai_imageio-1.1-alpha.jar\nparam03 = -Djava.awt.headless=true\nparam04 = -Dmail.smtp.starttls.enable=true\nparam05 = -Dmail.smtp.ssl.trust=smtp.office365.com\nparam06 = -jar\nparam07 = Run.jar\nparam08 = -Monitor=true\nparam09 = -<\/pre><br> <\/li><li>Another location to add \u201c-Dmail.smtp.starttls.enable=true\u201d is all of the jsl_*.ini files.<\/li><li>Now you can enter your Office 365 server in a JavaMail step in eDirect. The SMTP host is smtp.office365.com with a port of 25: <figure class=\"aligncenter\"><img decoding=\"async\" loading=\"lazy\" width=\"428\" height=\"227\" src=\"\/support\/wp-content\/uploads\/2019\/01\/Email3.jpg\" class=\"wp-image-7232\" alt=\"\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2019\/01\/Email3.jpg 428w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2019\/01\/Email3-300x159.jpg 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2019\/01\/Email3-150x80.jpg 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2019\/01\/Email3-250x133.jpg 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2019\/01\/Email3-339x180.jpg 339w\" sizes=\"(max-width: 428px) 100vw, 428px\" \/><\/figure><\/li><li>Finally, click the SMTP Options tab and enter your authentication credentials. Do not use the author&#8217;s credentials. <figure class=\"aligncenter\"><img decoding=\"async\" loading=\"lazy\" width=\"384\" height=\"209\" src=\"\/support\/wp-content\/uploads\/2019\/01\/Email4.jpg\" class=\"wp-image-7233\" alt=\"\" srcset=\"https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2019\/01\/Email4.jpg 384w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2019\/01\/Email4-300x163.jpg 300w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2019\/01\/Email4-150x82.jpg 150w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2019\/01\/Email4-250x136.jpg 250w, https:\/\/c002.minisoft.com\/support\/wp-content\/uploads\/2019\/01\/Email4-331x180.jpg 331w\" sizes=\"(max-width: 384px) 100vw, 384px\" \/><\/figure><\/li><li>Save the project and you are finished.<\/li><\/ol>\n\n\n\n<p><strong>NOTE:<\/strong> Sending emails through smtp.office365.com has a limit of 10,000 recipients per day and a Message rate of 30 messages per minute. For single threaded emails, this is not a common issue. For multi-threaded emails, it can become one. For more information, consult the following post:<br><a href=\"https:\/\/docs.microsoft.com\/en-us\/office365\/servicedescriptions\/exchange-online-service-description\/exchange-online-limits#receiving-and-sending-limits\">https:\/\/docs.microsoft.com\/en-us\/office365\/servicedescriptions\/exchange-online-service-description\/exchange-online-limits#receiving-and-sending-limits<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Prerequisite: You must have an Office 365 app password as documented at https:\/\/docs.microsoft.com\/en-us\/azure\/active-directory\/user-help\/multi-factor-authentication-end-user-app-passwords. You can send email through your Office 365 server after you complete the follow steps to configure eFORMz: Back up eFORMz.ini. Open eFORMz.ini in a text editor such as Notepad++. The file should contain text similar to this. Your javaw.exe path, -mx, [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[484],"_links":{"self":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/7223"}],"collection":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/users\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/comments?post=7223"}],"version-history":[{"count":18,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/7223\/revisions"}],"predecessor-version":[{"id":9301,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/7223\/revisions\/9301"}],"wp:attachment":[{"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=7223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=7223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/c002.minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=7223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}