<div dir="ltr"><div><div>Hello Team,<br><br></div>In workflow email tasks if we enter the email address into from email field the tasks are not getting queued <br>but if you select it from the picklist on right hand side the mails are getting in queue in com_vtiger_workflowtask_queue and mails are being sent.<br>

<br></div><div>Reason :<br><br></div><div>The event handler after save check for workflow event handler and in file modules/com_vtiger_workflow/VTWorkflowManager.inc <br><br></div><div>performTasks() function executes and in line 324 $hasContents = $task->hasContents($entityData); check for contents  <br>

</div><div><br></div><div>Next in File - modules/com_vtiger_workflow/tasks/VTEmailTask.inc, Line no 119<br><br></div><div>Actuall code<br><br>$fromEmailDetails = $et->render($entityCache, $entityId);<br>list($fromName, $fromEmail) = explode('&lt;', $fromEmailDetails);<br>

list($fromEmail, $rest) = explode('&gt;', $fromEmail);<br><br></div><div>But if we enter manually email address<br><br></div><div>in $fromEmailDetails there will be only email id, there wont be $fromName , < and >.<br>

<br></div><div>in the next line when you explode the email id moves to $fromName and $fromEmail will be null.<br><br></div><div>Finally in line 136 there is a condition to check $fromEmail is empty and this returns false and the queuing does not occur.<br>

<br></div><div>I have applied a small fix for temporary, Hope you will check and apply the right fix.<br></div><div><br></div><br clear="all"><div><div><div>Thanks<br>Anup.M.Y<br>
</div></div></div></div>