I created a .htm document as an email template and within the template I have the field %email% that is not being replaced by the actual email content.
All other fields are correctly replaced.
I retrieve the field this way after a query:
$data["email"] = $record["email"];
I am able to echo $data["email"] and get the right results.
In my case I have two email fields 'email' and 'assoc_email' and both show nothing when using the template (they do echo correctly) while all the other fields get replaced without issue.
both email fields are set up as Edit As: Test and Views As: email hyperlink
I've tried changing email field to view as: text, but still not working correctly.
Any thoughts?