sendmail TemplateConverter property
Return to Introduction  Previous page  Next page
Applies to
SendMail component.  

Declaration
property TemplateConverter: TTextTemplateConverter;  

Description
The TemplateConverter can be pointed to TextTemplateConverter component, if you are using the template keywords in your email messages, to translate all the %keywords% in message body and headers of outgoing email, to replace them with actual "Values", specified as the parameters of converter component.  
 
For example, if your message contains keywords like %RECIPIENT_NAME% or %RECIPIENT_EMAIL%, the component will automatically replace them to the actual name and email address of recipient, and the message like  
To: %RECIPIENT_NAME% <%RECIPIENT_EMAIL%>  
Dear %RECIPIENT_NAME%,  
etc, etc...  
 
will be automatically translated to  
To: Bill Gates <billgates@microsoft.com>  
Dear Bill Gates,  
etc, etc...  

See also
TTextTemplateConverter component.  
File not found.