<< Click to Display Table of Contents >> Navigation: GDI Print Directives > Email > Email Methods > Content |
This variable gets special mention because it is handled and used differently than most other variables. Note the following:
• | Unlike other //PDFX directives, multiple occurrences of Email.Content are supported. |
• | Each occurrence of the variable starts a new line in the PDF output file unless the previous line is terminated with a backslash ( \ ). Use the backslash line to suppress the normal line termination that otherwise occurs at the end of each line. |
• | The last Email.Content line must be followed by an Email.... line that is not Email.Content. In the example below, note that the final Email.Content line is followed by the Email.Subject line; that is done for the purpose of communicating "end of email content" to the driver. |
• | There is no limit to the number of characters that can be specified in a single Email.Content line. The combined content of the Email.Content is limited to 32K. |
• | Blank Email.Content lines may be used to enter blank lines into the email text. |
• | This directive does not offer control of text characteristics, such as font, color, etc. |
Examples
The following few directives give an example of how to create a multi-paragraph message. Note how "Email.Subject" follows the "Email.Content" lines, to indicate that the "Email.Content" is finished.
//PDFX,Email.Method,5
//PDFX,Email.To,"jill@microsabio.com, josie@microsabio.com"
//PDFX,Email.Content,"This is the text that will appear in the body of the \"
//PDFX,Email.Content,"email message. This is more text that will appear in \"
//PDFX,Email.Content,"the same paragraph of the body of the email message. \"
//PDFX,Email.Content,"It can go on and on and on for as long as you wish. When \"
//PDFX,Email.Content,"you wish to stop and create a new paragraph, then end \"
//PDFX,Email.Content,"the Email.Content line without a slash, which will end the paragraph."
//PDFX,Email.Content,
//PDFX,Email.Content,"Then create a new Email.Content line with no text on it, then create another Email.Content line and resume your message. You may either break up the lines using the backslash as shown above, or write one or more long lines that wrap in this viewer but do in fact simply constitute one long time of no more than 1024 characters."
//PDFX,Email.Content,
//PDFX,Email.Content,"Yours truly,"
//PDFX,Email.Content,
//PDFX,Email.Content,"MicroSabio"
//PDFX,Email.Subject,"PDF testing"