Closed mmjturner closed 7 years ago
You are on the right track just off slightly. Your code is accurate except you need to replace victim with @target. Your code would be <%= @target.firstname %> and the same for last name just like you have it. You could alternately use <%= @target.email_address %> to display the victim's email address.
I appreciate that! Thanks for the correction!
I've been searching and experimenting, but I can't figure out how to personalize emails. i.e. Dear
I assumed using <%= victim.firstname %><%= victim.lastname %> in the html code was along the right lines but it actually prevents emails from sending.
Is there a correct way to accomplish this?