<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE rdf:RDF[
	<!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
	<!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#'>
	<!ENTITY owl 'http://www.w3.org/2002/07/owl#'>
	<!ENTITY swivt 'http://semantic-mediawiki.org/swivt/1.0#'>
	<!ENTITY wiki 'http://wikibase.nl/Special:URIResolver/'>
	<!ENTITY category 'http://wikibase.nl/Special:URIResolver/Category-3A'>
	<!ENTITY property 'http://wikibase.nl/Special:URIResolver/Property-3A'>
	<!ENTITY wikiurl 'https://open-csp.org/'>
]>

<rdf:RDF
	xmlns:rdf="&rdf;"
	xmlns:rdfs="&rdfs;"
	xmlns:owl ="&owl;"
	xmlns:swivt="&swivt;"
	xmlns:wiki="&wiki;"
	xmlns:category="&category;"
	xmlns:property="&property;">

	<owl:Ontology rdf:about="https://open-csp.org/Special:ExportRDF/DevOps-3ADoc/FlexForm/2.0/email">
		<swivt:creationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2026-04-30T18:38:34+02:00</swivt:creationDate>
		<owl:imports rdf:resource="http://semantic-mediawiki.org/swivt/1.0"/>
	</owl:Ontology>
	<swivt:Subject rdf:about="http://wikibase.nl/Special:URIResolver/DevOps-3ADoc/FlexForm/2.0/email">
		<rdfs:label>email</rdfs:label>
		<rdfs:isDefinedBy rdf:resource="https://open-csp.org/Special:ExportRDF/DevOps-3ADoc/FlexForm/2.0/email"/>
		<swivt:page rdf:resource="https://open-csp.org/DevOps-3ADoc/FlexForm/2.0/email"/>
		<swivt:wikiNamespace rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">50000</swivt:wikiNamespace>
		<swivt:wikiPageContentLanguage rdf:datatype="http://www.w3.org/2001/XMLSchema#string">en</swivt:wikiPageContentLanguage>
		<property:Class rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Doc</property:Class>
		<property:Doc_sort_order rdf:datatype="http://www.w3.org/2001/XMLSchema#double">220</property:Doc_sort_order>
		<property:Doc_subject rdf:resource="&wiki;DevOps-3ADoc/FlexForm"/>
		<property:Doc_synopsis rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Using a form to send an email</property:Doc_synopsis>
		<property:Doc_target_group rdf:datatype="http://www.w3.org/2001/XMLSchema#string">User</property:Doc_target_group>
		<property:Doc_title_with_versions rdf:datatype="http://www.w3.org/2001/XMLSchema#string">email (2.0,2.1,2.5)</property:Doc_title_with_versions>
		<property:Subject_version rdf:datatype="http://www.w3.org/2001/XMLSchema#string">2.0</property:Subject_version>
		<property:Subject_version rdf:datatype="http://www.w3.org/2001/XMLSchema#string">2.1</property:Subject_version>
		<property:Subject_version rdf:datatype="http://www.w3.org/2001/XMLSchema#string">2.5</property:Subject_version>
		<property:Title rdf:datatype="http://www.w3.org/2001/XMLSchema#string">email</property:Title>
		<property:Has_query rdf:resource="&wiki;DevOps-3ADoc/FlexForm/2.0/email-23_QUERYa18591be385f97cf7569fd8a9828aa2c"/>
		<swivt:wikiPageCreationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2023-01-04T13:06:54Z</swivt:wikiPageCreationDate>
		<property:Creation_date-23aux rdf:datatype="http://www.w3.org/2001/XMLSchema#double">2459949.0464583</property:Creation_date-23aux>
		<property:Display_title_of rdf:datatype="http://www.w3.org/2001/XMLSchema#string">email</property:Display_title_of>
		<swivt:wikiPageModificationDate rdf:datatype="http://www.w3.org/2001/XMLSchema#dateTime">2025-08-21T09:08:01Z</swivt:wikiPageModificationDate>
		<property:Modification_date-23aux rdf:datatype="http://www.w3.org/2001/XMLSchema#double">2460908.8805671</property:Modification_date-23aux>
		<swivt:wikiPageSortKey rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Doc/FlexForm/2.0/email</swivt:wikiPageSortKey>
		<property:Page_creator rdf:resource="&wiki;User-3ACharlot"/>
		<property:Page_author rdf:resource="&wiki;User-3AMaintenance_script"/>
		<property:Page_author rdf:resource="&wiki;User-3ACharlot"/>
		<property:Page_author rdf:resource="&wiki;User-3AFd4138e7-2D8b46-2D4c8f-2D99bf-2Dd4b738ebc295"/>
		<property:Page_ID rdf:datatype="http://www.w3.org/2001/XMLSchema#double">358</property:Page_ID>
		<property:External_links rdf:datatype="http://www.w3.org/2001/XMLSchema#string">https://wikibase-solutions.com/developer-logs/create-a-newsletter-with-flexform</property:External_links>
		<property:Internal_links rdf:datatype="http://www.w3.org/2001/XMLSchema#string">DevOps:Doc/FlexForm/1.1/API/FlexFormBot</property:Internal_links>
		<property:Parsed_text rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Name 
 _email
 
 Type 
 _email
 
 Synopsis 
 Using a form to send an email
 
 Description 
 FlexForm can send a submitted form as an email. The FlexForm tag needs an action of 'email' for this. All other setting are done through the _email function.
 An email is send using an email template. Such an email template can be any page in the Wiki where you define the details for the email.
 When sending an email you need certain information:
 
 
 At form level means this can be set within the Form.
At template level means this is set within the template.
 
 
 Name
 
 Type
 
 At form level
 
 At template level
 
 Mandetory
 
 
 To
 
 email address
 
 yes
 
 yes
 
 yes
 
 
 From
 
 email address
 
 no
 
 yes
 
 yes
 
 
 Subject
 
 text
 
 yes
 
 yes
 
 yes
 
 
 Content
 
 text
 
 no
 
 yes
 
 yes
 
 
 CC
 
 email address
 
 no
 
 yes
 
 no
 
 
 BCC
 
 email address
 
 no
 
 yes
 
 no
 
 
 Reply to
 
 email address
 
 no
 
 yes
 
 no
 
 
 Attachment
 
 Filepath
 
 no
 
 yes
 
 no
 
 
 Header
 
 Wiki Page
 
 no
 
 yes
 
 no
 
 
 Footer
 
 Wiki
 
 no
 
 yes
 
 no
  
 Mail addresses can be also be formatted. It can be person@company.com , but you can also use Mr. Person [person@company.com] . The email will then be addressed to Mr. Person.
  
All the elements needed to send an email can be set inside the email template. You can create multiple email templates. You simply tell FlexForm what email template to use in the form. The elements that can be set at form level will override any defined elements in the template.
 All form elements that should be send with the email, must be defined in the email template. If you have an input element of type text and a name of "address" and you want to send this with the email, you have to put the name of the field inside the template with a "$"-sign in front of it( in this case $address). See examples.
 
 Form Parameters 
 to = recipients email address
  template = Title name of Wiki pages containing the email template
  subject = Subject of the email to be send
 
 Template Parameters 
 _to = recipients email address
  _from = senders email address
  _subject = email subject
  _cc = email address that receives a copy of the email
  _bcc = email address that receives a copy of the email, but not visible to anyone else
  _reply-to = email address used when someone replies to the send email
  _header = Title name of Wiki page with the email letterhead
  _footer = Title name of Wiki page with the email footer
  _html = Value can be yes or no, defaults to yes. Whether or not the email should be send as HTML (yes) or plain text (no)
  _attachment = full url to the file that needs to be attached. If you want to use a file from the wiki, use "file:&lt; name of the file&gt;" without any namespaces.
  
If everything is defined in an email template, then _email would only need the template argument to send an email.
 
 Example 
   &lt; form  action = "email" &gt; 
 &lt; _email  template = "FlexForm_mail_template" &gt;&lt;/ _email &gt; 
 &lt; input  type = "text"  name = "name"  placeholder = "Your name"  /&gt; 
 &lt; input  type = "email"  name = "email"  placeholder = "Your email address"  /&gt; 
 &lt; input  type = "text"  name = "city"  placeholder = "City you live"  /&gt; 
 &lt; input  type = "submit"  value = "submit your information"  /&gt; 
 &lt;/ form &gt; 
 
 Wiki page with title "FlexForm_mail_template"
 
  %_to=$email%
%_bcc=info@wikibase.nl%
%_subject=Form submitted from website by $name%
%_from=info@wikibase.nl%

 &lt; p &gt; Dear &lt; strong &gt; $name &lt;/ strong &gt; , &lt;/ p &gt; 
 &lt; p &gt; 
 Thank you for submitting the form on our website. We have received the following details: &lt;/ p &gt; 
  &lt; ul &gt; 
   &lt; li &gt; Name : $name &lt;/ li &gt; 
   &lt; li &gt; Email : $email &lt;/ li &gt; 
   &lt; li &gt; City : $city &lt;/ li &gt; 
 &lt;/ ul &gt; 
 &lt; p &gt; We will contact you shortly &lt;/ p &gt; 
 &lt; p &gt; Best regards &lt;/ p &gt; 
 
 Parsing 
 FlexForm will first parse the email template and then substitute form names in the email template with the form values. If you want to have this reversed, use the parselast argument on the _email function.
 
  Note / Tip 
 Since the email template is parsed, you can fill the value for e.g. the _bcc email addresses with a Semantic Media Parse function. Effectively you could create a newsletter function with this feature. Additionally.. when u use the Api function FlexFormBot you can create a Python function or a Maintenance script that could be triggered using a Cron job to send newsletters automatically.
 
 Links 
 The above Tip, basically creating a newsletter, is explained in more detail in this Developer log : https://wikibase-solutions.com/developer-logs/create-a-newsletter-with-flexform</property:Parsed_text>
	</swivt:Subject>
	<swivt:Subject rdf:about="http://wikibase.nl/Special:URIResolver/DevOps-3ADoc/FlexForm/2.0/email-23_QUERYa18591be385f97cf7569fd8a9828aa2c">
		<swivt:masterPage rdf:resource="&wiki;DevOps-3ADoc/FlexForm/2.0/email"/>
		<swivt:wikiNamespace rdf:datatype="http://www.w3.org/2001/XMLSchema#integer">50000</swivt:wikiNamespace>
		<property:Query_depth rdf:datatype="http://www.w3.org/2001/XMLSchema#double">0</property:Query_depth>
		<property:Query_format rdf:datatype="http://www.w3.org/2001/XMLSchema#string">plainlist</property:Query_format>
		<property:Query_size rdf:datatype="http://www.w3.org/2001/XMLSchema#double">1</property:Query_size>
		<property:Query_string rdf:datatype="http://www.w3.org/2001/XMLSchema#string">[[:DevOps:Doc/FlexForm/2.0/email]]</property:Query_string>
		<swivt:wikiPageSortKey rdf:datatype="http://www.w3.org/2001/XMLSchema#string">Doc/FlexForm/2.0/email# QUERYa18591be385f97cf7569fd8a9828aa2c</swivt:wikiPageSortKey>
	</swivt:Subject>
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#creationDate" />
	<owl:ObjectProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#page" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiNamespace" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageContentLanguage" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3AClass" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3ADoc_sort_order" />
	<owl:ObjectProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3ADoc_subject" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3ADoc_synopsis" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3ADoc_target_group" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3ADoc_title_with_versions" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3ASubject_version" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3ATitle" />
	<owl:ObjectProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3AHas_query" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageCreationDate" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3ACreation_date-23aux" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3ADisplay_title_of" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageModificationDate" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3AModification_date-23aux" />
	<owl:DatatypeProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#wikiPageSortKey" />
	<owl:ObjectProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3APage_creator" />
	<owl:ObjectProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3APage_author" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3APage_ID" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3AExternal_links" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3AInternal_links" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3AParsed_text" />
	<owl:ObjectProperty rdf:about="http://semantic-mediawiki.org/swivt/1.0#masterPage" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3AQuery_depth" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3AQuery_format" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3AQuery_size" />
	<owl:DatatypeProperty rdf:about="http://wikibase.nl/Special:URIResolver/Property-3AQuery_string" />
	<!-- Created by Semantic MediaWiki, https://www.semantic-mediawiki.org/ -->
</rdf:RDF>