I've got a plugin which am triggering emails from (listening to the
I am using a conditional to send two emails, depending on the permissions of the person registering the user.
In one instance am using
$email->htmlBody = craft()->templates->render('emails/employee', $vars); which works fine.
However, in another instance am using
$email->htmlBody = craft()->templates->render('emails/prospect', $vars); and getting the following error:
Unable to find the template “emails/prospect”.
Any ideas why this might be happening or how to get more useful feedback? I have double and triple-checked the spelling of the files and they are indeed available in the file system: