This topic is locked
[SOLVED]

Email Template where %email% field will not display

11/15/2022 2:58:04 PM
PHPRunner General questions
A
Ace Drummond author

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?

A
Ace Drummond author 11/15/2022

I forgot it displays as %email% and %assoc_email% when not replaced.

A
Ace Drummond author 11/15/2022

Solved the problem - template field was set to bold incorrectly. Bold html has to be outside the %email%