<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed><type>rich</type><version>1.0</version><provider_name>phorkie</provider_name><provider_url>https://p.cweiske.de/</provider_url><title>ejabberdctl send_stanza_c2s</title><author_name>Christian Weiske</author_name><cache_age>86400</cache_age><width>900</width><height>900</height><html>&lt;!-- embedding all files of https://p.cweiske.de/240 --&gt;
&lt;link rel="stylesheet" href="https://p.cweiske.de/css/embed.css"/&gt;
&lt;div class="phork" id="240"&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  
&lt;div class="document"&gt;


&lt;p&gt;It's possible to send a custom message (with HTML even) to someone with &lt;tt class="docutils literal"&gt;ejabberdctl&lt;/tt&gt;, but it required an orgy of escaping foo.&lt;/p&gt;
&lt;p&gt;Note that the resource (in this example &amp;quot;Psi+&amp;quot;) has to be online.&lt;/p&gt;
&lt;p&gt;Bug report: &lt;a class="reference external" href="https://github.com/processone/ejabberd/issues/804"&gt;https://github.com/processone/ejabberd/issues/804&lt;/a&gt;&lt;/p&gt;
&lt;/div&gt;

 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/240/rev-raw/e3a806b463127b93abcdc0d891cf5dfc24c57188/0-README.rst" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/240#0-README.rst"&gt;0-README.rst&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
    &lt;div class="phork-file"&gt;
 &lt;div class="phork-content"&gt;
  &lt;style type="text/css"&gt;/**
 * GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann
 * (http://qbnz.com/highlighter/ and http://geshi.org/)
 */
.bash .de1, .bash .de2 {font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;}
.bash  {font-family:monospace;}
.bash .imp {font-weight: bold; color: red;}
.bash li, .bash .li1 {color: #DDD;}
.bash .ln {width:1px;text-align:right;margin:0;padding:0 2px;vertical-align:top;}
.bash .kw1 {color: #000000; font-weight: bold;}
.bash .kw2 {color: #c20cb9; font-weight: bold;}
.bash .kw3 {color: #7a0874; font-weight: bold;}
.bash .co0 {color: #666666; font-style: italic;}
.bash .co1 {color: #800000;}
.bash .co2 {color: #cc0000; font-style: italic;}
.bash .co3 {color: #000000; font-weight: bold;}
.bash .es1 {color: #000099; font-weight: bold;}
.bash .es2 {color: #007800;}
.bash .es3 {color: #007800;}
.bash .es4 {color: #007800;}
.bash .es5 {color: #780078;}
.bash .es_h {color: #000099; font-weight: bold;}
.bash .br0 {color: #7a0874; font-weight: bold;}
.bash .sy0 {color: #000000; font-weight: bold;}
.bash .st0 {color: #ff0000;}
.bash .st_h {color: #ff0000;}
.bash .nu0 {color: #000000;}
.bash .re0 {color: #007800;}
.bash .re1 {color: #007800;}
.bash .re2 {color: #007800;}
.bash .re4 {color: #007800;}
.bash .re5 {color: #660033;}
.bash span.xtra { display:block; }
&lt;/style&gt;&lt;div class="code"&gt;&lt;table class="bash"&gt;&lt;tbody&gt;&lt;tr class="li1"&gt;&lt;td class="ln"&gt;&lt;pre class="de1"&gt;1
2
&lt;/pre&gt;&lt;/td&gt;&lt;td class="de1"&gt;&lt;pre class="de1"&gt;$ ejabberdctl send_stanza_c2s alice example.org &lt;span class="st0"&gt;&amp;quot;Psi+&amp;quot;&lt;/span&gt;\
&amp;#160; &amp;#160;&lt;span class="st0"&gt;&amp;quot;&amp;lt;message' 'type=&lt;span class="es1"&gt;\&amp;quot;&lt;/span&gt;chat&lt;span class="es1"&gt;\&amp;quot;&lt;/span&gt;' 'to=&lt;span class="es1"&gt;\&amp;quot;&lt;/span&gt;bob@example.org&lt;span class="es1"&gt;\&amp;quot;&lt;/span&gt;' 'from=&lt;span class="es1"&gt;\&amp;quot;&lt;/span&gt;alice@example.org&lt;span class="es1"&gt;\&amp;quot;&lt;/span&gt;&amp;gt;&amp;lt;body&amp;gt;World&amp;lt;/body&amp;gt;&amp;lt;/message&amp;gt;&amp;quot;&lt;/span&gt;&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;
 &lt;/div&gt;
 &lt;div class="phork-meta"&gt;
  &lt;a href="https://p.cweiske.de/240/rev-raw/e3a806b463127b93abcdc0d891cf5dfc24c57188/1-command.sh" style="float: right"&gt;view raw source&lt;/a&gt;
  &lt;a href="https://p.cweiske.de/240#1-command.sh"&gt;1-command.sh&lt;/a&gt;
 &lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</html></oembed>
