<?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 Sendemail command does not work in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/Sendemail-command-does-not-work/m-p/486230#M7795</link>
    <description>&lt;P&gt;Hi all&lt;/P&gt;

&lt;P&gt;I'm testing &lt;STRONG&gt;sendemail&lt;/STRONG&gt; command but it's not sending email.&lt;/P&gt;

&lt;P&gt;here's my search code&lt;/P&gt;

&lt;P&gt;index=main&lt;BR /&gt;
| table _time&lt;BR /&gt;
| sendemail to=&lt;A href="mailto:tkdguq0110@gmail.com" target="_blank"&gt;tkdguq0110@gmail.com&lt;/A&gt; subject=sendemail_test server=mail.google.com&lt;/P&gt;

&lt;P&gt;and here's a log  above&lt;/P&gt;

&lt;P&gt;2020-05-04 19:32:27,700 +0900 ERROR sendemail:1435 - 'utf8' codec can't decode byte 0xbf in position 14: invalid start byte&lt;BR /&gt;
Traceback (most recent call last):&lt;BR /&gt;
  File "C:\Program Files\Splunk\etc\apps\search\bin\sendemail.py", line 1428, in &lt;BR /&gt;
    results = sendEmail(results, settings, keywords, argvals)&lt;BR /&gt;
  File "C:\Program Files\Splunk\etc\apps\search\bin\sendemail.py", line 474, in sendEmail&lt;BR /&gt;
    errorMessage = str(e) + ' while sending mail to: ' + ssContent.get("action.email.to")&lt;BR /&gt;
UnicodeDecodeError: 'utf8' codec can't decode byte 0xbf in position 14: invalid start byte&lt;/P&gt;

&lt;P&gt;I do not know what the problem is.&lt;BR /&gt;
I would appreciate if you give me any help&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 05:12:11 GMT</pubDate>
    <dc:creator>tkdguq0110</dc:creator>
    <dc:date>2020-09-30T05:12:11Z</dc:date>
    <item>
      <title>Sendemail command does not work</title>
      <link>https://community.splunk.com/t5/Reporting/Sendemail-command-does-not-work/m-p/486230#M7795</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;

&lt;P&gt;I'm testing &lt;STRONG&gt;sendemail&lt;/STRONG&gt; command but it's not sending email.&lt;/P&gt;

&lt;P&gt;here's my search code&lt;/P&gt;

&lt;P&gt;index=main&lt;BR /&gt;
| table _time&lt;BR /&gt;
| sendemail to=&lt;A href="mailto:tkdguq0110@gmail.com" target="_blank"&gt;tkdguq0110@gmail.com&lt;/A&gt; subject=sendemail_test server=mail.google.com&lt;/P&gt;

&lt;P&gt;and here's a log  above&lt;/P&gt;

&lt;P&gt;2020-05-04 19:32:27,700 +0900 ERROR sendemail:1435 - 'utf8' codec can't decode byte 0xbf in position 14: invalid start byte&lt;BR /&gt;
Traceback (most recent call last):&lt;BR /&gt;
  File "C:\Program Files\Splunk\etc\apps\search\bin\sendemail.py", line 1428, in &lt;BR /&gt;
    results = sendEmail(results, settings, keywords, argvals)&lt;BR /&gt;
  File "C:\Program Files\Splunk\etc\apps\search\bin\sendemail.py", line 474, in sendEmail&lt;BR /&gt;
    errorMessage = str(e) + ' while sending mail to: ' + ssContent.get("action.email.to")&lt;BR /&gt;
UnicodeDecodeError: 'utf8' codec can't decode byte 0xbf in position 14: invalid start byte&lt;/P&gt;

&lt;P&gt;I do not know what the problem is.&lt;BR /&gt;
I would appreciate if you give me any help&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:12:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Sendemail-command-does-not-work/m-p/486230#M7795</guid>
      <dc:creator>tkdguq0110</dc:creator>
      <dc:date>2020-09-30T05:12:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sendemail command does not work</title>
      <link>https://community.splunk.com/t5/Reporting/Sendemail-command-does-not-work/m-p/486231#M7796</link>
      <description>&lt;P&gt;Hello @tkdguq0110 ,&lt;/P&gt;

&lt;P&gt;can you try with quoted to string:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sendemail to="tkdguq0110@gmail.com" subject=sendemail_test server=mail.google.com
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Additionally you have to specify other parameters because gmail accept authtenticated emails using encrypted channel only: &lt;A href="https://answers.splunk.com/answers/38624/how-to-configure-email-alert-using-gmail-smtp.html"&gt;https://answers.splunk.com/answers/38624/how-to-configure-email-alert-using-gmail-smtp.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Please consider workarounds: &lt;BR /&gt;
&lt;A href="https://stackoverflow.com/questions/53264898/splunk-sendemail-fails-errno-99-with-mailserver-smtp-gmail-com"&gt;https://stackoverflow.com/questions/53264898/splunk-sendemail-fails-errno-99-with-mailserver-smtp-gmail-com&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Let me know if it worked&lt;/P&gt;</description>
      <pubDate>Mon, 04 May 2020 11:20:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/Sendemail-command-does-not-work/m-p/486231#M7796</guid>
      <dc:creator>PavelP</dc:creator>
      <dc:date>2020-05-04T11:20:05Z</dc:date>
    </item>
  </channel>
</rss>

