<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body smarttemplateinserted="true" text="#000000" bgcolor="#FFFFFF">
Dear vtiger Team,<br>
<br>
We created a workflow supported Custom module successfully in the
last months.<br>
This CustomModule is related to the Contacts module.<br>
<br>
There is a task to send email to the Contact when in the
CustomModule a dedicated field has changed.<br>
<br>
<b>Good news:</b> The workflow works as it was expected. When the
dedicated field has changed the workflow email task is executed by
the next run of the cron.<br>
<br>
<b>The issues:</b><br>
(1) The sent email contains a tracking image, and this tracking
image is inserted to the HTML part of the email before the
<html> tag. It would be better between the <body>
</body> parts of the email. Here is the part of the sent email
code:<br>
<br>
<pre>--b1_9f547510890c4c2724d41dacc19b19eb
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<img src='<a class="moz-txt-link-freetext" href="http://">http://</a><VTIGER-URL><font color="#cc0000"><b>//</b></font>modules/Emails/TrackAccess.php?<font color="#cc0000"><b>record</b></font>=2184&<font color="#cc0000"><b>mailid</b></font>=2187&app_key=a899c08ae1c429cda857b2d98c71acb9' alt='' width='1' height='1'><font color="#cc0000"><b><html></b></font>
<head>
<title></title>
</head>
<body class="scayt-enabled">Dear ...
</pre>
(2) The tracking link contains a double // after the vtiger URL
domain part, before the modules/Emails... part.<br>
<br>
(3) The sent email is not recorded to the Contact record ->
Emails relation, even though the to_email_id was the Contact primary
email address. Contact record is the parent record to the named
CustomModule record.<br>
The tracking img URL contains 3 identifier.<br>
<b>record=2184</b>, where 2184 is the CRM_ID of the CustomModule
record<br>
<b>mailid=2187</b>, where 2187 is the CRM_ID of the sent email
itself.<br>
and app_key.<br>
<br>
<b>Question:</b><br>
How to resolve it? <br>
Because if the workflow email was sent to the Contact or Lead email
address, and the tracking image was inserted, <b>the email should
be listed in the sent email list of the Contact or Lead records</b>.<br>
<br>
Kindest regards:<br>
István<br>
<br>
<div class="moz-signature">-- <br>
üdvözlettel:<br>
<br>
<b>Holbok István</b><br>
<br>
+3670-342-0900<br>
<b>e-mail:</b> <a class="moz-txt-link-abbreviated" href="mailto:holbok@gmail.com">holbok@gmail.com</a><br>
<b>SkyPe:</b> holboki<br>
<br>
</div>
</body>
</html>