f:company@example.com|s:Latest News|b:The new version is now available.|r:sales@example.com|A:on|g:101|x:222|c:ceo@example.com|B:backup@example.com" AS _sendmail
..
This will send an email with subject *Latest News* from company@example.com to customer1, customer2 and customer3 by
using a realname for customer2 and customer3 and suppress generating of OoO answer if any receiver is on vacation.
Additional the CEO as well as backup will receive the mail via CC and BCC.
...
...
@@ -6099,7 +6117,9 @@ Any combination (incl. repeating them) are possible. Any source will be added as
Optional any number of sources can be concatenated to a single PDF file: 'C|F:<file1>|F:<file2>|p:export&a=123'.
Examples in Report::
Examples in Report:
.. code-block:: mysql
# One file attached.
10.sql = SELECT "t:john.doe@example.com|f:company@example.com|s:Latest News|b:The new version is now available.|F:fileadmin/summary.pdf" AS _sendmail
...
...
@@ -6131,14 +6151,10 @@ Renders images. Allows to define an alternative text and a title attribute for t
**Syntax**
::
.. code-block:: mysql
10.sql = SELECT "<pathtoimage>|[<alttext>]|[<titletext>]" AS _img
sendMailAttachment={{SELECT'd:Letter.pdf|t:', p.firstName, '', p.name, '|p:id=letterbody&pId=', p.id, '&_sip=1&--margin-top=50mm&--margin-bottom=20mm&--header-html={{BASE_URL_PRINT:Y}}?id=letterheader&--footer-right="Seite: [page]/[toPage]"&--footer-font-size=8&--footer-spacing=10' FROM Person AS p WHERE p.id={{id:S}} }}
Replace the static content elements from 2. and 3. by QFQ Content elements as needed: ::
Replace the static content elements from 2. and 3. by QFQ Content elements as needed:
.. code-block:: mysql
10.sql = SELECT '<divclass="letter-receiver"><p>', p.name AS '_+br', p.street AS '_+br', p.city AS '_+br', '</p>'
FROM Person AS p WHERE p.id={{pId:S}}
...
...
@@ -6750,7 +6775,9 @@ Create a output like this: ::
ThisfillsD11,E11,F11,D12
InReportSyntax:::
InReportSyntax:
..code-block::mysql
#With...AS_XLS(tokenexplicitgiven)
10.sql=SELECT'position=D10'AS_XLS,
...
...
@@ -6776,7 +6803,9 @@ In Report Syntax: ::
.. _`excel-export-sample`:
Excel export samples: ::
Excel export samples:
.. code-block:: mysql
# From scratch (both are the same, one with '_excel' the other with '_link')
SELECT CONCAT('d:new.xlsx|t:Excel(new)|uid:54') AS _excel
...
...
@@ -6835,7 +6864,9 @@ A `<div>` example HTML output (HTML send to the browser): ::