To ensure proper parsing and dynamic mailto generation, please follow the guidelines below when formatting your text file. The file should contain the following fields: TO, CC, BCC, SUBJECT, and BODY.
TO:'[email protected]'
CC:'[email protected]'
BCC:'[email protected]'
SUBJECT:'Help Requested on {@date:Delivery Date | 2018-07-22} for {@text:Receiver|Customer}'
BODY:
Dear {@text:Receiver|Customer},
We received your request for help on {@date:Delivery Date | 2018-07-22}. Our team will review your case and get back to you shortly.
Best regards,
Support Team
- TO: The recipient's email address.
Example:
TO:'[email protected]'
- CC: Carbon copy recipients' email addresses (optional).
Example:
CC:'[email protected]'
- BCC: Blind carbon copy recipients' email addresses (optional).
Example:
BCC:'[email protected]'
- SUBJECT: The subject of the email. This can include dynamic input fields.
Example:
SUBJECT:'Help Requested on {@date:Delivery Date | 2018-07-22} for {@text:Receiver|Customer}'
- BODY: The body of the email. This can include dynamic input fields.
To generate dynamic input fields, use the following format:
{@type:Label|Placeholder}
- type: The type of the HTML input element.
- Label: The label for the input field.
- Placeholder: The default value or placeholder for the input field. (Optional)
-
Text Input:
- Format:
{@text:Receiver|Customer}
- Generates:
<input type="text" name="Receiver" value="Customer">
- Format:
-
Date Input:
- Format:
{@date:Delivery Date|2018-07-22}
- Generates:
<input type="date" name="Delivery Date" value="2018-07-22">
- Format:
-
Email Input:
- Format:
{@email:Email}
- Generates:
<input type="email" name="Email" value="">
- Format:
For a comprehensive list of HTML input types, refer to the MDN Web Docs on .
By following these guidelines, you can ensure that your text file is correctly formatted for dynamic mailto generation.