Easily send a 4D Write Pro document containing images as the body of an email!

Automatically translated from English

Want to use 4D Write Pro to create HTML emails with static pictures in the text? Maybe something like a fancy newsletter with pictures of the top ten destinations in the world, or simply include your company logo? Wondering how to accomplish this? Wonder no more because with the 4D v18, you can in three simple steps:

HDI 4D Write Pro to HTML body

Here’s an example using a MIME created from 4D Write Pro document:

// Mime export 

WP EXPORT VARIABLE(WParea;$mime;wk mime html)
// conversion of Write Pro document Mime in mail object
$email:=MAIL Convert from MIME($mime)
// Fill your mail object headers
$email.subject:="4D Write Pro HTML body"
$yourServerInfo:=New object
$transporter:=SMTP New transporter($yourServerInfo)

Piece of cake! Try the HDI above to see the new feature in action, and take check out the doc center for more examples!


Fabrice Mainguené

• Product Owner •

Fabrice Mainguené joined 4D Program team in November, 2016. As a Product Owner, he is in charge of writing the user stories then translating it to functional specifications. His role is also to make sure that the feature implementation delivered is meeting the customer need.

After obtaining a Bachelor degree in Computer Science at CNAM, Fabrice joined a small software publishing company as a Windev developer. Then he worked for different companies in industry and trade areas as a Windev and web developer as well as technical advisor on new features.