<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: notebook example does not work in ArcGIS Notebooks Questions</title>
    <link>https://community.esri.com/t5/arcgis-notebooks-questions/notebook-example-does-not-work/m-p/425523#M129</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/6905"&gt;Jeff Timm&lt;/A&gt;‌ , sorry we couldn't respond to this in time for GIS day demo. Happy to try to help you debug this now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a few things that can be causing that message to get truncated. What email service are you using to send emails via SMTP? Sometimes different providers (gmail, yahoo mail, custom smtp servers) parse the body of the email in different ways. So you might have to look into your provider's documentation for programmatic sending of emails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I had to guess what you were running into, I'm guessing it's something weird with your email provider and newlines (your email starts with "Reachable Layers", the first line to be preceded by two newlines). I've seen similar behavior with newlines when I've run this code against different email providers. Can you try modifying your Python code to the following?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;return f"This an email about an ArcGIS WebMap. (This line may get truncated).\n"\&lt;BR /&gt;f"\n"\&lt;BR /&gt;f"Webmap ID '{webmap_item.id}' contains unreachable URLs."\&lt;BR /&gt; f"You can view the webmap here: {webmap_item.homepage}\n"\&lt;BR /&gt; f"\n"\&lt;BR /&gt; f"Reachable Layers\n"\&lt;BR /&gt; f"-----------------&amp;gt;\n"\&lt;BR /&gt; f"{reachable_str}\n"\&lt;BR /&gt; f"\n"\&lt;BR /&gt; f"Unreachable Layers\n"\&lt;BR /&gt; f"-------------------&amp;gt;\n"\&lt;BR /&gt; f"{unreachable_str}"&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't guarantee that will work, let me know if it doesn't!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Nov 2019 17:55:06 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2019-11-14T17:55:06Z</dc:date>
    <item>
      <title>notebook example does not work</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/notebook-example-does-not-work/m-p/425521#M127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am going through the example notebook&amp;nbsp;&lt;/P&gt;&lt;H4 class="" style="color: #4c4c4c; background-color: #ffffff; font-size: 1.2019rem; margin: 0px 0px 0.375rem;"&gt;&lt;A href="https://giscat.ne.gov/portal/home/item.html?id=1fc3f446a7a04eff8bf4951b808ffb4a" style="color: #005e95; text-decoration: underline;"&gt;Content Management: Check for broken URLs&lt;/A&gt;&lt;/H4&gt;&lt;P&gt;and it works fine other than the email output.&amp;nbsp; The assembly code says this:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;# Asemble the message and return it&lt;BR /&gt; return f"Webmap ID '{webmap_item.id}' contains unreachable URLs."\&lt;BR /&gt; f"You can view the webmap here: {webmap_item.homepage}\n"\&lt;BR /&gt; f"\n"\&lt;BR /&gt; f"Reachable Layers\n"\&lt;BR /&gt; f"-----------------&amp;gt;\n"\&lt;BR /&gt; f"{reachable_str}\n"\&lt;BR /&gt; f"\n"\&lt;BR /&gt; f"Unreachable Layers\n"\&lt;BR /&gt; f"-------------------&amp;gt;\n"\&lt;BR /&gt; f"{unreachable_str}"&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;but the email sent has this in the email body:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Reachable Layers&lt;/P&gt;&lt;P&gt;-----------------&amp;gt;&lt;/P&gt;&lt;P&gt;* &lt;IMG class="jive_emoji" src="https://community.esri.com/images/emojis/2705.png" /&gt; World_Hillshade_3805&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unreachable Layers&lt;/P&gt;&lt;P&gt;-------------------&amp;gt;&lt;/P&gt;&lt;P&gt;* &lt;IMG class="jive_emoji" src="https://community.esri.com/images/emojis/274c.png" /&gt; plsstest_655&lt;/P&gt;&lt;P&gt;* &lt;IMG class="jive_emoji" src="https://community.esri.com/images/emojis/274c.png" /&gt; CityCountyState_5586&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Where is the first part and why does it not include that in the email?&amp;nbsp; Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2019 18:33:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/notebook-example-does-not-work/m-p/425521#M127</guid>
      <dc:creator>JeffTimm</dc:creator>
      <dc:date>2019-11-12T18:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: notebook example does not work</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/notebook-example-does-not-work/m-p/425522#M128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was hoping to demo this on GIS day! Tomorrow&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2019 19:05:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/notebook-example-does-not-work/m-p/425522#M128</guid>
      <dc:creator>JeffTimm</dc:creator>
      <dc:date>2019-11-12T19:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: notebook example does not work</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/notebook-example-does-not-work/m-p/425523#M129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/6905"&gt;Jeff Timm&lt;/A&gt;‌ , sorry we couldn't respond to this in time for GIS day demo. Happy to try to help you debug this now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a few things that can be causing that message to get truncated. What email service are you using to send emails via SMTP? Sometimes different providers (gmail, yahoo mail, custom smtp servers) parse the body of the email in different ways. So you might have to look into your provider's documentation for programmatic sending of emails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I had to guess what you were running into, I'm guessing it's something weird with your email provider and newlines (your email starts with "Reachable Layers", the first line to be preceded by two newlines). I've seen similar behavior with newlines when I've run this code against different email providers. Can you try modifying your Python code to the following?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;return f"This an email about an ArcGIS WebMap. (This line may get truncated).\n"\&lt;BR /&gt;f"\n"\&lt;BR /&gt;f"Webmap ID '{webmap_item.id}' contains unreachable URLs."\&lt;BR /&gt; f"You can view the webmap here: {webmap_item.homepage}\n"\&lt;BR /&gt; f"\n"\&lt;BR /&gt; f"Reachable Layers\n"\&lt;BR /&gt; f"-----------------&amp;gt;\n"\&lt;BR /&gt; f"{reachable_str}\n"\&lt;BR /&gt; f"\n"\&lt;BR /&gt; f"Unreachable Layers\n"\&lt;BR /&gt; f"-------------------&amp;gt;\n"\&lt;BR /&gt; f"{unreachable_str}"&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't guarantee that will work, let me know if it doesn't!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- David&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2019 17:55:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/notebook-example-does-not-work/m-p/425523#M129</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-11-14T17:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: notebook example does not work</title>
      <link>https://community.esri.com/t5/arcgis-notebooks-questions/notebook-example-does-not-work/m-p/425524#M130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked! Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2019 19:26:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-notebooks-questions/notebook-example-does-not-work/m-p/425524#M130</guid>
      <dc:creator>JeffTimm</dc:creator>
      <dc:date>2019-11-14T19:26:24Z</dc:date>
    </item>
  </channel>
</rss>

