<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Email on CloudBolt Documentation</title>
		<link>https://docs.cloudbolt.io/docs/cmp/configure/administration/system/email/</link>
		<description>Recent content in Email on CloudBolt Documentation</description>
		<generator>Hugo</generator>
		<language>en-us</language>
		
		
		
		
			<atom:link href="https://docs.cloudbolt.io/docs/cmp/configure/administration/system/email/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Email templates</title>
				<link>https://docs.cloudbolt.io/docs/cmp/configure/administration/system/email/templates/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://docs.cloudbolt.io/docs/cmp/configure/administration/system/email/templates/</guid>
				<description>&lt;p&gt;Templates are listed by name and slug on the &lt;strong&gt;Templates&lt;/strong&gt; tab of &lt;strong&gt;Admin&lt;/strong&gt; &amp;gt; &lt;strong&gt;Email Settings&lt;/strong&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;edit-a-template&#34;&gt;Edit a template&lt;/h2&gt;&#xA;&lt;p&gt;On the &lt;strong&gt;Templates&lt;/strong&gt; tab, select the pencil icon in the template&amp;rsquo;s row. Each template has the following fields:&lt;/p&gt;&#xA;&lt;div class=&#34;table-scroll&#34;&gt;&#xA;&lt;div class=&#34;table-responsive&#34;&gt;&#xA;&lt;table&gt;&#xA;  &lt;thead&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;th&gt;Field&lt;/th&gt;&#xA;          &lt;th&gt;Description&lt;/th&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/thead&gt;&#xA;  &lt;tbody&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;strong&gt;Subject&lt;/strong&gt;&lt;/td&gt;&#xA;          &lt;td&gt;The subject line, rendered with the context the sender passes in.&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;strong&gt;From address&lt;/strong&gt;&lt;/td&gt;&#xA;          &lt;td&gt;A sending address, written as &lt;code&gt;Full Name &amp;lt;email@address&amp;gt;&lt;/code&gt;. Leave empty to use the default from &lt;a href=&#34;https://docs.cloudbolt.io/docs/cmp/configure/administration/system/email/&#34;&gt;Email Settings&lt;/a&gt;.&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;strong&gt;CC Addresses&lt;/strong&gt;, &lt;strong&gt;BCC Addresses&lt;/strong&gt;&lt;/td&gt;&#xA;          &lt;td&gt;Comma-separated addresses copied on every email from this template.&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;strong&gt;Body&lt;/strong&gt;&lt;/td&gt;&#xA;          &lt;td&gt;The HTML body, rendered with the context the sender passes in. Omit &lt;code&gt;&amp;lt;html&amp;gt;&lt;/code&gt; and &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; tags, as these are supplied by the wrapper described below.&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;      &lt;tr&gt;&#xA;          &lt;td&gt;&lt;strong&gt;Text body&lt;/strong&gt;&lt;/td&gt;&#xA;          &lt;td&gt;The plain-text body. If left empty, CMP strips the tags from the HTML body and uses the result.&lt;/td&gt;&#xA;      &lt;/tr&gt;&#xA;  &lt;/tbody&gt;&#xA;&lt;/table&gt;&#xA;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;For example, to drop the rate from the Order Complete email, find this block in the &lt;strong&gt;Body&lt;/strong&gt; field:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Send email manually</title>
				<link>https://docs.cloudbolt.io/docs/cmp/configure/administration/system/email/send-manually/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://docs.cloudbolt.io/docs/cmp/configure/administration/system/email/send-manually/</guid>
				<description>&lt;p&gt;There is one helper for the administrator and one for any list of recipients, and both render an &lt;a href=&#34;https://docs.cloudbolt.io/docs/cmp/configure/administration/system/email/templates/&#34;&gt;email template&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;email-the-administrator&#34;&gt;Email the administrator&lt;/h2&gt;&#xA;&lt;p&gt;&lt;code&gt;email_admin()&lt;/code&gt; writes to the CB Admin address on &lt;a href=&#34;https://docs.cloudbolt.io/docs/cmp/configure/administration/system/email/&#34;&gt;Email Settings&lt;/a&gt;. Provide a subject and a message:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-python&#34; data-lang=&#34;python&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;from&lt;/span&gt; utilities.mail &lt;span style=&#34;color:#f92672&#34;&gt;import&lt;/span&gt; email_admin&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;email_admin(context&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;{&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;subject&amp;#39;&lt;/span&gt;: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;Hello&amp;#39;&lt;/span&gt;, &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;message&amp;#39;&lt;/span&gt;: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;My email message&amp;#39;&lt;/span&gt;})&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;To use a specific template, pass its slug. The context is rendered into the template&amp;rsquo;s &lt;strong&gt;Subject&lt;/strong&gt;, &lt;strong&gt;Body&lt;/strong&gt;, and &lt;strong&gt;Text body&lt;/strong&gt; fields:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-python&#34; data-lang=&#34;python&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;from&lt;/span&gt; utilities.mail &lt;span style=&#34;color:#f92672&#34;&gt;import&lt;/span&gt; email_admin&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;email_admin(&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    slug&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;order-complete&amp;#39;&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    context&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;{&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;subject&amp;#39;&lt;/span&gt;: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;Your order is complete&amp;#39;&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;message&amp;#39;&lt;/span&gt;: &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;Success!&amp;#39;&lt;/span&gt;,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;        &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;order&amp;#39;&lt;/span&gt;: order,&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    },&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id=&#34;email-anyone-else&#34;&gt;Email anyone else&lt;/h2&gt;&#xA;&lt;p&gt;&lt;code&gt;email()&lt;/code&gt; takes a list of recipients, allowing you to reach, for example, a group&amp;rsquo;s admins or a server owner:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Send email automatically</title>
				<link>https://docs.cloudbolt.io/docs/cmp/configure/administration/system/email/send-automatically/</link>
				<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
				<guid>https://docs.cloudbolt.io/docs/cmp/configure/administration/system/email/send-automatically/</guid>
				<description>&lt;p&gt;Each one is rendered from a built-in, customizable &lt;a href=&#34;https://docs.cloudbolt.io/docs/cmp/configure/administration/system/email/templates/&#34;&gt;email template&lt;/a&gt;.&lt;/p&gt;&#xA;&lt;h2 id=&#34;orders&#34;&gt;Orders&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;When an order needs approval, CMP emails the approvers for that order&amp;rsquo;s group. See &lt;a href=&#34;https://docs.cloudbolt.io/docs/cmp/configure/access-and-security/users/&#34;&gt;Users&lt;/a&gt;.&lt;/li&gt;&#xA;&lt;li&gt;&lt;strong&gt;Send Reminder&lt;/strong&gt; on the order sends approvers another request.&lt;/li&gt;&#xA;&lt;li&gt;When an order is finished, CMP emails the requester with the result. This is controlled by the &lt;strong&gt;Email on order completion&lt;/strong&gt; setting in &lt;a href=&#34;https://docs.cloudbolt.io/docs/cmp/configure/administration/system/email/&#34;&gt;Email Settings&lt;/a&gt;, enabled by default.&lt;/li&gt;&#xA;&lt;li&gt;When an order that names a recipient finishes successfully, that recipient is emailed.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;rules-and-actions&#34;&gt;Rules and actions&lt;/h2&gt;&#xA;&lt;p&gt;Several built-in rules send email as their action. You can see the pattern in the &lt;strong&gt;Then&lt;/strong&gt; behavior of the &lt;em&gt;Notify admins when a newer version of CloudBolt is available&lt;/em&gt; rule, and copy it in your own rules.&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
