I’m working on a project where I need to send HTML emails with Outlook on 
Windows. I have an “Email Templates” table that contains a text area that is 
set to be “multi-style” to hold the email templates. The user can add fields 
from various tables to a template and do styled text to create the body of the 
email. 

They can then select a group of records, select an Email Template and it will 
send that email to the people in the selected records, personalizing each email 
based on fields in the selected records. You know… basic “mail merge” type 
stuff be instead of printing letter to paper I’m generating emails. 

I’ve got this all working and am happy with the results so far. But I’ve got 
one area I still need to implement. Including images in the email body.

4D documentation states that Styled Text supports 3 types of dynamic tags:

4D Expression
URL
Custom Tags

Adding a 4D Expression to styled text is easy with “ST INSERT EXPRESSION”. 
Adding a URL is easy with “ST INSERT URL”. But how do I insert a “custom tag”?

The documentation specifically states you can use a custom tag to reference an 
image:

"You can now insert any tag in plain text, for example <img 
src="http://doc.4d.com/pictures/ja.png";>. It is stored in the code of the plain 
text without being interpreted or displayed. This is particularly useful in the 
context of e-mails in HTML format and including pictures for example."

http://doc.4d.com/4Dv14/4D/14.4/Supported-tags.300-2510895.en.html 
<http://doc.4d.com/4Dv14/4D/14.4/Supported-tags.300-2510895.en.html>

But it does not give an example of how to insert this tag. I’ve tried several 
ways of doing this and it always ends up just showing the image link text 
instead of the actual image. 

What’s the magic for adding an <img> tag to a multi-styled text area so that 
when the text is put into the body of an Outlook email it will display the 
actual image?

Tim

*****************************************
Tim Nevels
Innovative Solutions
785-749-3444
timnev...@mac.com
*****************************************

**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**********************************************************************

Reply via email to