{"id":21744,"date":"2022-04-11T13:53:16","date_gmt":"2022-04-11T11:53:16","guid":{"rendered":"https:\/\/help.openbee.com\/open-bee-email-capture\/administrators-guide\/messaging-tab\/rules-tab\/converting-the-email-body-to-pdf\/"},"modified":"2022-04-11T13:53:16","modified_gmt":"2022-04-11T11:53:16","slug":"converting-the-email-body-to-pdf","status":"publish","type":"page","link":"https:\/\/help.openbee.com\/en\/open-bee-email-capture\/administrators-guide\/messaging-tab\/rules-tab\/converting-the-email-body-to-pdf\/","title":{"rendered":"Converting the email body to PDF"},"content":{"rendered":"<div id=\"main-content\" class=\"wiki-content group\">\n<p><strong>The action of converting the email body to PDF can be customized.<\/strong><\/p>\n<p><strong>The PDF rendering is based on a &#8220;Template&#8221; in HTML format.<\/strong><\/p>\n<p><strong><br \/>\n<\/strong><\/p>\n<p>Open Bee\u2122 eMail Capture&nbsp;contains 2 predefined &#8220;Templates&#8221;:<\/p>\n<ol>\n<li>The first contains only the body of the email<\/li>\n<li>The second contains first the header of the email and then the body of the email.<\/li>\n<\/ol>\n<p><img decoding=\"async\" class=\"confluence-embedded-image\" width=\"700\" src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/04\/264536069.png\" data-image-src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/04\/264536069.png\"><\/p>\n<p>The &#8220;Edit&#8221; Link allows you to edit these &#8220;Templates&#8221; and customize it.<\/p>\n<p><strong>Template to extract and convert the body of the email only<\/strong><\/p>\n<p><strong><br \/>\n<\/strong><\/p>\n<p><strong><img decoding=\"async\" class=\"confluence-embedded-image\" width=\"700\" src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/04\/264536070.png\" data-image-src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/04\/264536070.png\"><\/strong><\/p>\n<p><strong><br \/>\n<\/strong><\/p>\n<p><strong>Template to extract and convert the header and body of the email<\/strong><\/p>\n<p><strong><br \/>\n<\/strong><\/p>\n<p><strong><img decoding=\"async\" class=\"confluence-embedded-image\" width=\"700\" src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/04\/264536068.png\" data-image-src=\"https:\/\/help.openbee.com\/wp-content\/uploads\/2022\/04\/264536068.png\"><\/strong><\/p>\n<p><strong><br \/>\n<\/strong><\/p>\n<p><strong><br \/>\n<\/strong><\/p>\n<p><strong><br \/>\n<\/strong><\/p>\n<p>The text of these &#8220;Templates&#8221; can be customized with the text of your choice.&nbsp;<\/p>\n<p>The following variables can be used. A variable name is always delimited by two percent.<\/p>\n<h1 id=\"Conversionducorpsdel'emailenPDF-Listedesvariables\"><strong>List of variables<\/strong><\/h1>\n<p><strong>Variables related to the date of the email extraction<\/strong><\/p>\n<p>%currentYear% : Year of treatment =&gt; 2018<br \/>\n%currentMonth% : Month of treatment =&gt; 03<br \/>\n%currentDay% : Treatment Day =&gt; 13<br \/>\n%currentHour% :&nbsp;Processing Time =&gt; 11<br \/>\n%currentMinute% :&nbsp; Treatment minute =&gt; 28<br \/>\n%currentSecond% : Second of treatment =&gt; 34<\/p>\n<p>%currentDate% : Date of processing in &#8220;dd\/mm\/yy&#8221; format<br \/>\n%currentDateUS% : Processing date in &#8220;mm\/dd\/yyyy&#8221; format<br \/>\n%currentDateAsia%: Processing date in &#8220;yyy\/mm\/dd&#8221; format&nbsp;<\/p>\n<p>%currentDateTime% : Date and Time of processing in &#8220;dd\/MM\/yyyy HH:mm:ss&#8221; format<br \/>\n%currentDateTimeUS% : Date and Time of processing in &#8220;MM\/dd\/yyyy HH:mm:ss&#8221; format<br \/>\n%currentDateTimeAsia%: Date and Time of processing in the format &#8220;yyyy\/MM\/dd HH:mm:ss&#8221;<\/p>\n<p><strong>Email account variables<\/strong><br \/>\n%emailAccountName% : Name of the email entered in the configuration<br \/>\n%emailAccountAddress% : The address associated with the configured account<\/p>\n<p><strong>Variables related to the date of receipt of the email<\/strong><br \/>\n%emailDateYear%&nbsp;: Year email received =&gt; 2018<br \/>\n%emailDateMonth% : Month of receipt of the email&nbsp;=&gt; 03<br \/>\n%emailDateDay% : Day&nbsp;of receipt of the email&nbsp; =&gt; 13<br \/>\n%emailDateHour%&nbsp;:&nbsp;Time&nbsp;Email Received =&gt; 11<br \/>\n%emailDateMinute%&nbsp;:&nbsp; Minute of receiving the email =&gt; 28<br \/>\n%emailDateSecond%&nbsp;: Second&nbsp;of receiving the email =&gt; 34<\/p>\n<p>%emailDateDate%&nbsp;: Date of receipt of the email in &#8220;dd\/MM\/yyyy&#8221; format<br \/>\n%emailDateDateUS%&nbsp;: Date of receipt of the email in the format&nbsp; &#8220;MM\/dd\/yyyy&#8221;<br \/>\n%emailDateDateAsia%&nbsp;: Date of receipt of the email in the format&nbsp; &#8220;yyyy\/MM\/dd&#8221;)<\/p>\n<p>%emailDateDateTime% : Date and Time of receipt of the email in the format&nbsp; &#8220;dd\/MM\/yyyy HH:mm:ss&#8221;<br \/>\n%emailDateDateTimeUS%&nbsp;:&nbsp;Date and Time&nbsp;of receipt of the email&nbsp;in the format&nbsp; &#8220;MM\/dd\/yyyy HH:mm:ss&#8221;<br \/>\n%emailDateDateTimeAsia%&nbsp;:&nbsp;Date and Time&nbsp;of receipt of the email&nbsp;in the format &#8220;yyyy\/MM\/dd HH:mm:ss&#8221;<\/p>\n<p><strong>Email Variables<\/strong><br \/>\n%emailUID% : Unique identifier of the email in the IMAP folder<br \/>\n%emailSubject% : Email Subject<\/p>\n<p><strong>Recipient Variables<\/strong><br \/>\n%emailToAddress% : Comma-separated recipient email address<br \/>\n%emailToName% : The sender&nbsp;name of the recipients&nbsp;separated by commas<\/p>\n<p><strong>Sender variables<\/strong><br \/>\n%emailSenderAddress% : The email address of the sender<br \/>\n%emailSenderName% : The name of the sender<\/p>\n<p><strong>Variables relating to persons in copy<\/strong><br \/>\n%emailCCAddresses%&nbsp;: Email addresses of CC separated by commas<br \/>\n%emailCCNames%&nbsp;: Name of the people in CC separated by commas<\/p>\n<p><strong>Variables relating to persons in copy<\/strong>&nbsp;<strong>Hidden<\/strong><br \/>\n%emailBCCAddresses%&nbsp;: Comma-separated email addresses of people in hidden copies<br \/>\n%emailBCCNames%&nbsp;: Names of People in Hidden Copy Separated by Commas<\/p>\n<p><strong>Attachment Variables<\/strong><br \/>\n%emailAttachmentsPresent% : &#8220;Yes&#8221; if an attachment is present, &#8220;No&#8221; otherwise<br \/>\n%emailAttachmentsList% : Comma-separated attachment names<br \/>\n%emailAttachmentsCount% : Number of pieces attached in the email<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>The action of converting the email body to PDF can be customized. The PDF rendering is based on a &#8220;Template&#8221; in HTML format. Open Bee\u2122 eMail Capture&nbsp;contains 2 predefined &#8220;Templates&#8221;: The first contains only the body of the email The second contains first the header of the email and then the body of the email. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":21743,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"templates\/ob-help-products.php","meta":{"footnotes":""},"class_list":["post-21744","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21744","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/comments?post=21744"}],"version-history":[{"count":0,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21744\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/pages\/21743"}],"wp:attachment":[{"href":"https:\/\/help.openbee.com\/en\/wp-json\/wp\/v2\/media?parent=21744"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}