<?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: AGOL email trigger for added features? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/agol-email-trigger-for-added-features/m-p/629495#M31286</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/66260" target="_blank"&gt;Kushendra Shah&lt;/A&gt;‌ take a look at the e-mail portion of the script in the below document.&amp;nbsp; I believe I updated it a few months ago so it will works with multiple email recipients.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;# If new features exist, send email&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; len&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;oidList&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    smtpObj &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; smtplib&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SMTP&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;host&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;smtpServer&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; port&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;portNumber&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

    msg &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; MIMEText&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;TEXT&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    msg&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Subject'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; SUBJECT
    msg&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'From'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; fromEmail
    msg&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'To'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;", "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;toEmail&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

    smtpObj&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sendmail&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fromEmail&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; toEmail&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; msg&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;as_string&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Successfully sent email"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    smtpObj&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;quit&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 02:47:35 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2021-12-12T02:47:35Z</dc:date>
    <item>
      <title>AGOL email trigger for added features?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/agol-email-trigger-for-added-features/m-p/629486#M31277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After creating my first data editing app in AGOL, I have a question. Is there some method of email notification that features were added? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to have to be tied to AGOL all the time creating what effectively becomes a manual process looking for updates. Opening a MXD that has the feature service added to the map is still a manual process in my book. An email notification would serve as a triggering event to check the AGOL data and ingest the features recently added.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any insight/guidance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 14:46:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/agol-email-trigger-for-added-features/m-p/629486#M31277</guid>
      <dc:creator>ThomasHoman</dc:creator>
      <dc:date>2015-01-07T14:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: AGOL email trigger for added features?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/agol-email-trigger-for-added-features/m-p/629487#M31278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take a look at the &lt;A href="http://doc.arcgis.com/en/operations-dashboard/"&gt;Operations Dashboard&lt;/A&gt;.&amp;nbsp; You can easily configure widgets to show information about the features and their associated attributes.&amp;nbsp; For example, you could create a query widget to show which features were added on a given date/time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 14:51:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/agol-email-trigger-for-added-features/m-p/629487#M31278</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2015-01-07T14:51:21Z</dc:date>
    </item>
    <item>
      <title>Re: AGOL email trigger for added features?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/agol-email-trigger-for-added-features/m-p/629488#M31279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jake,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's an option but really it's closely related to my trying to avoid having another application open to monitor that I'm trying to avoid. The app is probably going to see &lt;STRONG style="text-decoration: underline;"&gt;very&lt;/STRONG&gt; low traffic rates (1-2 entries per month after the first 2 weeks) so having a dashboard up is a non-starter for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The app is to collect boundary polygons for notification purposes when we change road names in the County. Once the first responder and utility types get added I don't anticipate the public as being too interested so activity will essentially become close to nil. At that point I would be checking for new data on a monthly basis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 15:44:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/agol-email-trigger-for-added-features/m-p/629488#M31279</guid>
      <dc:creator>ThomasHoman</dc:creator>
      <dc:date>2015-01-07T15:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: AGOL email trigger for added features?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/agol-email-trigger-for-added-features/m-p/629489#M31280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I helped a customer create a script that was run by Windows Task Scheduler every couple hours.&amp;nbsp; The script checked the pressure of valves in their hosted service.&amp;nbsp; If the pressure was over 500 PSI, an e-mail would be sent.&amp;nbsp; The script is posted below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import urllib, urllib2, json, smtplib

username = 'agol'
password = 'agol'

&lt;SPAN&gt;tokenURL = '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://www.arcgis.com/sharing/rest/generateToken" rel="nofollow noopener noreferrer" target="_blank"&gt;https://www.arcgis.com/sharing/rest/generateToken&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;
&lt;SPAN&gt;params = {'f': 'pjson', 'username': username, 'password': password, 'referer': '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.arcgis.com/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://www.arcgis.com&lt;/A&gt;&lt;SPAN&gt;'}&lt;/SPAN&gt;
req = urllib2.Request(tokenURL, urllib.urlencode(params))
response = urllib2.urlopen(req)
data = json.load(response)
token = data['token']


&lt;SPAN&gt;valveURL = '&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://services2.arcgis.com/DyqsuMihRCOO7S/arcgis/rest/services/DEMO1/FeatureServer/4/query" rel="nofollow noopener noreferrer" target="_blank"&gt;http://services2.arcgis.com/DyqsuMihRCOO7S/arcgis/rest/services/DEMO1/FeatureServer/4/query&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;
params = {'where': 'PRESSURE &amp;gt; 500', 'returnIdsOnly': 'true', 'f': 'pjson', 'token': token}
req = urllib2.Request(valveURL, urllib.urlencode(params))
response = urllib2.urlopen(req)
data = json.load(response)
valveList = data['objectIds']


if len(valveList) &amp;gt; 0:
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM = &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:'user@agol.com" rel="nofollow noopener noreferrer" target="_blank"&gt;'user@agol.com&lt;/A&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;
&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TO = [&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:'user@agol.com" rel="nofollow noopener noreferrer" target="_blank"&gt;'user@agol.com&lt;/A&gt;&lt;SPAN&gt;']&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; SUBJECT = 'Valve Inspections'
&amp;nbsp;&amp;nbsp;&amp;nbsp; TEXT = "Valves with OBJECTIDs " + str(valveList) + " need inspection."

&amp;nbsp;&amp;nbsp;&amp;nbsp; message = """\
&amp;nbsp;&amp;nbsp;&amp;nbsp; From: %s
&amp;nbsp;&amp;nbsp;&amp;nbsp; To: %s
&amp;nbsp;&amp;nbsp;&amp;nbsp; Subject: %s

&amp;nbsp;&amp;nbsp;&amp;nbsp; %s
&amp;nbsp;&amp;nbsp;&amp;nbsp; """ % (FROM, ", ".join(TO), SUBJECT, TEXT)

&amp;nbsp;&amp;nbsp;&amp;nbsp; smtpObj = smtplib.SMTP(host='mail.agol.com', port=25)
&amp;nbsp;&amp;nbsp;&amp;nbsp; smtpObj.sendmail(FROM, TO, message)
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Successfully sent email"
&amp;nbsp;&amp;nbsp;&amp;nbsp; smtpObj.quit()&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:47:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/agol-email-trigger-for-added-features/m-p/629489#M31280</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-12T02:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: AGOL email trigger for added features?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/agol-email-trigger-for-added-features/m-p/629490#M31281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jake, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the script. With some minor editing, I should be able to move forward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 14:32:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/agol-email-trigger-for-added-features/m-p/629490#M31281</guid>
      <dc:creator>ThomasHoman</dc:creator>
      <dc:date>2015-01-08T14:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: AGOL email trigger for added features?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/agol-email-trigger-for-added-features/m-p/629491#M31282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you get a chance, please mark this question as answered to help other users in the community.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 15:08:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/agol-email-trigger-for-added-features/m-p/629491#M31282</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2015-01-08T15:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: AGOL email trigger for added features?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/agol-email-trigger-for-added-features/m-p/629492#M31283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jake,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can we integrate this into the portal federated with the server? I need to&amp;nbsp;get an alert message in an email as the new feature is created in a feature layer in the database. Can you help me with that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kush&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2020 19:06:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/agol-email-trigger-for-added-features/m-p/629492#M31283</guid>
      <dc:creator>KushendraShah2</dc:creator>
      <dc:date>2020-03-13T19:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: AGOL email trigger for added features?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/agol-email-trigger-for-added-features/m-p/629493#M31284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/66260"&gt;Kushendra Shah&lt;/A&gt;‌ take a look at my comment on &lt;SPAN class=""&gt;&lt;A _jive_internal="true" href="https://community.esri.com/docs/DOC-10163-send-email-when-a-feature-is-added-to-an-arcgis-online-hosted-feature-service?messageTarget=all&amp;amp;start=50&amp;amp;mode=comments#comment-77534"&gt;Sep 12, 2019 3:58 PM&lt;/A&gt;&lt;/SPAN&gt; on the page 3 of the following document:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/docs/DOC-10163-send-email-when-a-feature-is-added-to-an-arcgis-online-hosted-feature-service?messageTarget=all&amp;amp;start=50&amp;amp;mode=comments"&gt;https://community.esri.com/docs/DOC-10163-send-email-when-a-feature-is-added-to-an-arcgis-online-hosted-feature-service?messageTarget=all&amp;amp;start=50&amp;amp;mode=comments&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Mar 2020 19:23:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/agol-email-trigger-for-added-features/m-p/629493#M31284</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2020-03-13T19:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: AGOL email trigger for added features?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/agol-email-trigger-for-added-features/m-p/629494#M31285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jake,&lt;/P&gt;&lt;P&gt;Thanks for the script. It works on my end. However, I have an issue regarding automated email notification. I set the script to execute in window task scheduler, and If I just put my email address, I get notified. But, if I put multiple email recipients (i.e coworkers email address including myself), I don't receive the notification. Do you have an idea to solve this issue?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kush&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Mar 2020 17:12:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/agol-email-trigger-for-added-features/m-p/629494#M31285</guid>
      <dc:creator>KushendraShah2</dc:creator>
      <dc:date>2020-03-26T17:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: AGOL email trigger for added features?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/agol-email-trigger-for-added-features/m-p/629495#M31286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/66260" target="_blank"&gt;Kushendra Shah&lt;/A&gt;‌ take a look at the e-mail portion of the script in the below document.&amp;nbsp; I believe I updated it a few months ago so it will works with multiple email recipients.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;# If new features exist, send email&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; len&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;oidList&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    smtpObj &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; smtplib&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SMTP&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;host&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;smtpServer&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; port&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;portNumber&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

    msg &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; MIMEText&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;TEXT&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    msg&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Subject'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; SUBJECT
    msg&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'From'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; fromEmail
    msg&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'To'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;", "&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;join&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;toEmail&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

    smtpObj&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;sendmail&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fromEmail&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; toEmail&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; msg&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;as_string&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Successfully sent email"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
    smtpObj&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;quit&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:47:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/agol-email-trigger-for-added-features/m-p/629495#M31286</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-12T02:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: AGOL email trigger for added features?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/agol-email-trigger-for-added-features/m-p/629496#M31287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That works. Thanks Jake!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Mar 2020 19:03:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/agol-email-trigger-for-added-features/m-p/629496#M31287</guid>
      <dc:creator>KushendraShah2</dc:creator>
      <dc:date>2020-03-27T19:03:08Z</dc:date>
    </item>
  </channel>
</rss>

