{"id":770,"date":"2008-11-10T16:22:03","date_gmt":"2008-11-10T21:22:03","guid":{"rendered":"http:\/\/blogs.devhorizon.com\/reza\/?p=770"},"modified":"2008-11-10T18:44:40","modified_gmt":"2008-11-10T23:44:40","slug":"workflow-emails-not-sent-out-to-the-external-users","status":"publish","type":"post","link":"https:\/\/blogs.devhorizon.com\/reza\/2008\/11\/10\/workflow-emails-not-sent-out-to-the-external-users\/","title":{"rendered":"WF Emails NOT Sent Out to the External Users"},"content":{"rendered":"<p>We have developed this sequential Workflow that&#8217;s automatically kicked off when a registration request is dumped in a custom list in a SharePoint site. The registration can be initiated in a public facing zone and by users who have no corporate account or internal email address ;therefore Workflow must be able to send out emails to the external email addresses such as <em>John.Doe@foo.ca<\/em>.<\/p>\n<p>In our code , we used  <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/microsoft.sharepoint.utilities.sputility.isemailserverset.aspx\">SPUtility.IsEmailServerSet(SPWeb)<\/a> to ensure the mail server is setup and used  <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/microsoft.sharepoint.utilities.sputility.sendemail.aspx\">SPUtility.SendEmail()<\/a> method (instead of using the Email Activity) to send out email notifications.In our dev machines , we all use stand-alone Mail servers (i.e. <a href=\"https:\/\/blogs.devhorizon.com\/reza\/?p=694\">smarter mail<\/a>), so we potentially couldn&#8217;t test the email functionality to the external users until we got our code to the QA environment where Exchange was properly configured to handle all mail stuff. In QA environment emails could not be sent out to the external users.<\/p>\n<p>Armed with this command line SMTP mailer called <a href=\"http:\/\/sourceforge.net\/projects\/blat\">blat<\/a> , we realized that this was an SMTP relay issue. Here&#8217;s what the tool threw at us:<\/p>\n<p><em>Sending test.txt to <\/em><em>John.Doe@foo.ca<\/em><br \/>\n<em> Login name is mossadmin@mycompany.com<br \/>\nThe SMTP server does not like the name John.Doe@foo.ca<br \/>\nHave you set the &#8216;To:&#8217; field correctly, or do you need authorization (-u\/-pw) ?<br \/>\nThe SMTP server response was -&gt; 550 5.7.1 Unable to relay for John.Doe@foo.ca<\/em><\/p>\n<p>We associated the IP of the WFE to allow SMTP relay. Bammm &#8211; Email are NOW SENDING EXTERNALLY!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We have developed this sequential Workflow that&#8217;s automatically kicked off when a registration request is dumped in a custom list in a SharePoint site. The registration can be initiated in a public facing zone and by users who have no corporate account or internal email address ;therefore Workflow must be able to send out emails [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[],"class_list":["post-770","post","type-post","status-publish","format-standard","hentry","category-moss-2007"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>WF Emails NOT Sent Out to the External Users - Reza Alirezaei&#039;s Blog %<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blogs.devhorizon.com\/reza\/2008\/11\/10\/workflow-emails-not-sent-out-to-the-external-users\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Reza Alirezaei\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/blogs.devhorizon.com\\\/reza\\\/2008\\\/11\\\/10\\\/workflow-emails-not-sent-out-to-the-external-users\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blogs.devhorizon.com\\\/reza\\\/2008\\\/11\\\/10\\\/workflow-emails-not-sent-out-to-the-external-users\\\/\"},\"author\":{\"name\":\"Reza Alirezaei\",\"@id\":\"https:\\\/\\\/blogs.devhorizon.com\\\/reza\\\/#\\\/schema\\\/person\\\/cdbb24d283697a65951cb4a14e474938\"},\"headline\":\"WF Emails NOT Sent Out to the External Users\",\"datePublished\":\"2008-11-10T21:22:03+00:00\",\"dateModified\":\"2008-11-10T23:44:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/blogs.devhorizon.com\\\/reza\\\/2008\\\/11\\\/10\\\/workflow-emails-not-sent-out-to-the-external-users\\\/\"},\"wordCount\":265,\"commentCount\":0,\"articleSection\":[\"MOSS 2007\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/blogs.devhorizon.com\\\/reza\\\/2008\\\/11\\\/10\\\/workflow-emails-not-sent-out-to-the-external-users\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/blogs.devhorizon.com\\\/reza\\\/2008\\\/11\\\/10\\\/workflow-emails-not-sent-out-to-the-external-users\\\/\",\"url\":\"https:\\\/\\\/blogs.devhorizon.com\\\/reza\\\/2008\\\/11\\\/10\\\/workflow-emails-not-sent-out-to-the-external-users\\\/\",\"name\":\"WF Emails NOT Sent Out to the External Users - Reza Alirezaei's Blog %\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blogs.devhorizon.com\\\/reza\\\/#website\"},\"datePublished\":\"2008-11-10T21:22:03+00:00\",\"dateModified\":\"2008-11-10T23:44:40+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/blogs.devhorizon.com\\\/reza\\\/#\\\/schema\\\/person\\\/cdbb24d283697a65951cb4a14e474938\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/blogs.devhorizon.com\\\/reza\\\/2008\\\/11\\\/10\\\/workflow-emails-not-sent-out-to-the-external-users\\\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/blogs.devhorizon.com\\\/reza\\\/#website\",\"url\":\"https:\\\/\\\/blogs.devhorizon.com\\\/reza\\\/\",\"name\":\"Reza Alirezaei's Blog\",\"description\":\"Blogging from the field!\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/blogs.devhorizon.com\\\/reza\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/blogs.devhorizon.com\\\/reza\\\/#\\\/schema\\\/person\\\/cdbb24d283697a65951cb4a14e474938\",\"name\":\"Reza Alirezaei\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3ba940d84e0ecb909e62e93df4c56daf0395c7e53c914467ab2ee73124a7d7b6?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3ba940d84e0ecb909e62e93df4c56daf0395c7e53c914467ab2ee73124a7d7b6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/3ba940d84e0ecb909e62e93df4c56daf0395c7e53c914467ab2ee73124a7d7b6?s=96&d=mm&r=g\",\"caption\":\"Reza Alirezaei\"},\"url\":\"https:\\\/\\\/blogs.devhorizon.com\\\/reza\\\/author\\\/rezaa\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WF Emails NOT Sent Out to the External Users - Reza Alirezaei's Blog %","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blogs.devhorizon.com\/reza\/2008\/11\/10\/workflow-emails-not-sent-out-to-the-external-users\/","twitter_misc":{"Written by":"Reza Alirezaei","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blogs.devhorizon.com\/reza\/2008\/11\/10\/workflow-emails-not-sent-out-to-the-external-users\/#article","isPartOf":{"@id":"https:\/\/blogs.devhorizon.com\/reza\/2008\/11\/10\/workflow-emails-not-sent-out-to-the-external-users\/"},"author":{"name":"Reza Alirezaei","@id":"https:\/\/blogs.devhorizon.com\/reza\/#\/schema\/person\/cdbb24d283697a65951cb4a14e474938"},"headline":"WF Emails NOT Sent Out to the External Users","datePublished":"2008-11-10T21:22:03+00:00","dateModified":"2008-11-10T23:44:40+00:00","mainEntityOfPage":{"@id":"https:\/\/blogs.devhorizon.com\/reza\/2008\/11\/10\/workflow-emails-not-sent-out-to-the-external-users\/"},"wordCount":265,"commentCount":0,"articleSection":["MOSS 2007"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/blogs.devhorizon.com\/reza\/2008\/11\/10\/workflow-emails-not-sent-out-to-the-external-users\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/blogs.devhorizon.com\/reza\/2008\/11\/10\/workflow-emails-not-sent-out-to-the-external-users\/","url":"https:\/\/blogs.devhorizon.com\/reza\/2008\/11\/10\/workflow-emails-not-sent-out-to-the-external-users\/","name":"WF Emails NOT Sent Out to the External Users - Reza Alirezaei's Blog %","isPartOf":{"@id":"https:\/\/blogs.devhorizon.com\/reza\/#website"},"datePublished":"2008-11-10T21:22:03+00:00","dateModified":"2008-11-10T23:44:40+00:00","author":{"@id":"https:\/\/blogs.devhorizon.com\/reza\/#\/schema\/person\/cdbb24d283697a65951cb4a14e474938"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blogs.devhorizon.com\/reza\/2008\/11\/10\/workflow-emails-not-sent-out-to-the-external-users\/"]}]},{"@type":"WebSite","@id":"https:\/\/blogs.devhorizon.com\/reza\/#website","url":"https:\/\/blogs.devhorizon.com\/reza\/","name":"Reza Alirezaei's Blog","description":"Blogging from the field!","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blogs.devhorizon.com\/reza\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/blogs.devhorizon.com\/reza\/#\/schema\/person\/cdbb24d283697a65951cb4a14e474938","name":"Reza Alirezaei","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/3ba940d84e0ecb909e62e93df4c56daf0395c7e53c914467ab2ee73124a7d7b6?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/3ba940d84e0ecb909e62e93df4c56daf0395c7e53c914467ab2ee73124a7d7b6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3ba940d84e0ecb909e62e93df4c56daf0395c7e53c914467ab2ee73124a7d7b6?s=96&d=mm&r=g","caption":"Reza Alirezaei"},"url":"https:\/\/blogs.devhorizon.com\/reza\/author\/rezaa\/"}]}},"_links":{"self":[{"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/posts\/770","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/comments?post=770"}],"version-history":[{"count":0,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/posts\/770\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/media?parent=770"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/categories?post=770"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.devhorizon.com\/reza\/wp-json\/wp\/v2\/tags?post=770"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}