{"id":2515,"date":"2019-01-04T10:15:51","date_gmt":"2019-01-04T10:15:51","guid":{"rendered":"http:\/\/www.softaculous.com\/blog\/?post_type=docs&#038;p=2515"},"modified":"2021-10-28T11:40:50","modified_gmt":"2021-10-28T11:40:50","slug":"email-templates","status":"publish","type":"docs","link":"https:\/\/www.softaculous.com\/blog\/docs\/admin\/customizing-softaculous\/email-templates\/","title":{"rendered":"Email Templates"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Email Template Customization<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Now, You can Customize the Email Templates which are sent by Softaculous. There are 7 different Email templates which are available in Softaculous. The following are the Email Templates<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>New Installation Template (PHP)<\/strong><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">This is the Email Notification Template that is sent to the User after the User has installed a new PHP Script.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>New Installation Template (JavaScript)<\/strong><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">This is the Email Notification Template that is sent to the User after the User has installed a new JavaScript.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>New Installation Template (PERL)<\/strong><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">This is the Email Notification Template that is sent to the User after the User has installed a new Perl Script.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Remove Installation Template<\/strong><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">This is the Email Notification Template that is sent to the User when the User removes an installation.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Edit Installation Details Template<\/strong><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">This is the Email Notification Template that is sent to the User when the User edits an existing installation details.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Updates Available Template (From ADMIN)<\/strong><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">This is the Email Notification Template that is sent to the User when the System Administrator wants his users to be Notified about the Scripts Updates Available.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Updates Available Template (From CRON)<\/strong><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">This is the Email Notification Template that is sent to the User automatically whenever a CRON job is executed and a Script update is available. This will also notify the user about the Updates available.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Customizing an Email Template<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can Also Customize the Email Templates as per your requirements.To do so you need to do the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Go to your Softaculous Admin Panel and click on Email Templates.<\/strong><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2021\/10\/email_templates_1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"480\" src=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2021\/10\/email_templates_1.png\" alt=\"\" class=\"wp-image-4947\" srcset=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2021\/10\/email_templates_1.png 1000w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2021\/10\/email_templates_1-300x144.png 300w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2021\/10\/email_templates_1-768x369.png 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Choose the Email Template you want to edit and click on the Edit button.<\/strong><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2021\/10\/email_templates_2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1000\" height=\"480\" src=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2021\/10\/email_templates_2.png\" alt=\"\" class=\"wp-image-4948\" srcset=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2021\/10\/email_templates_2.png 1000w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2021\/10\/email_templates_2-300x144.png 300w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2021\/10\/email_templates_2-768x369.png 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Make the Necessary Changes to the Email Template.<\/strong><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2021\/10\/email_templates_3.png\"><img loading=\"lazy\" decoding=\"async\" width=\"862\" height=\"1024\" src=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2021\/10\/email_templates_3-862x1024.png\" alt=\"\" class=\"wp-image-4949\" srcset=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2021\/10\/email_templates_3-862x1024.png 862w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2021\/10\/email_templates_3-253x300.png 253w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2021\/10\/email_templates_3-768x912.png 768w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2021\/10\/email_templates_3.png 1000w\" sizes=\"auto, (max-width: 862px) 100vw, 862px\" \/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Click on Save Email Template to save the Changes.<\/strong><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2021\/10\/email_templates_4.png\"><img loading=\"lazy\" decoding=\"async\" width=\"348\" height=\"53\" src=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2021\/10\/email_templates_4.png\" alt=\"\" class=\"wp-image-4950\" srcset=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2021\/10\/email_templates_4.png 348w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2021\/10\/email_templates_4-300x46.png 300w\" sizes=\"auto, (max-width: 348px) 100vw, 348px\" \/><\/a><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>To Discard the Changes made and to Get back the Original Email Template click on Reset Template<\/strong><\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2021\/10\/email_templates_5.png\"><img loading=\"lazy\" decoding=\"async\" width=\"335\" height=\"47\" src=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2021\/10\/email_templates_5.png\" alt=\"\" class=\"wp-image-4951\" srcset=\"https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2021\/10\/email_templates_5.png 335w, https:\/\/www.softaculous.com\/blog\/wp-content\/uploads\/2021\/10\/email_templates_5-300x42.png 300w\" sizes=\"auto, (max-width: 335px) 100vw, 335px\" \/><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Explanation of the Email Template Variables.<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can use the following Variables&nbsp;:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>$scriptname<\/strong>&nbsp;: Script Name (Name of the Script that goes along with the Email Template)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>$path<\/strong>&nbsp;: Installation Path (The Installation Path of the Script)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>$version<\/strong>&nbsp;: Version (The Script Version That is available for the Update)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>$url<\/strong>&nbsp;: URL (The URL at which the Script is working on )<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>$admin_url<\/strong>&nbsp;: Admin URL (Administrative URL of the Script )<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>$datadirectory<\/strong>&nbsp;: Data Directory (The name of the Data Directory Created)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>$admin_username<\/strong>&nbsp;: Admin Username (The administrative Username)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>$admin_pass<\/strong>&nbsp;: Admin Password (The Administrative Password)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>$dbname<\/strong>&nbsp;: MySQL Database (The mysql database name that was made)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>$dbuser<\/strong>&nbsp;: MySQL DB User (The mysql Database User)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>$dbhost<\/strong>&nbsp;: MySQL DB Host (The mysql Database Host)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>$dbpass<\/strong>&nbsp;: MySQL DB Password (The mysql Database Password )<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>$cron<\/strong>&nbsp;: Cron Command (The CRON command that is available in the script)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>$time<\/strong>&nbsp;: Time of Installation (The time of installation)<\/p>\n\n\n\n<p class=\"alert alert-info wp-block-paragraph\"><strong>Note<\/strong>&nbsp;: You can use an IF for an Optional Variable in the following manner&nbsp;:&nbsp;<strong>&lt;if $VARIABLE_NAME&gt;$VARIABLE_NAME&lt;\/if&gt;<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This will work in the following manner. If the variable is&nbsp;<strong>available<\/strong>&nbsp;in the script it will be&nbsp;<strong>included in the mail<\/strong>&nbsp;else it will excluded. For instance&nbsp;<strong>&lt;if $datadirectory&gt;$datadirectory&lt;\/if&gt;<\/strong>&nbsp;, this will&nbsp;<strong>include<\/strong>&nbsp;the&nbsp;<strong>Name of the Data Directory<\/strong>&nbsp;only if it exists in the installed script. Else if it does not exist in the script installation it will be&nbsp;<strong>excluded<\/strong>.<\/p>\n","protected":false},"featured_media":0,"parent":1673,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"","docs_category":[],"class_list":["post-2515","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2515","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/comments?post=2515"}],"version-history":[{"count":4,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2515\/revisions"}],"predecessor-version":[{"id":4952,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/2515\/revisions\/4952"}],"up":[{"embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs\/1673"}],"wp:attachment":[{"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/media?parent=2515"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/www.softaculous.com\/blog\/wp-json\/wp\/v2\/docs_category?post=2515"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}