You need to sign in to do that
Don't have an account?
PS81
Visualforce email template : "send Test..." hitting error "The template does not have a controller that can be selected for preview."
Hi
I have created a simple visualforce email template to be used in my apex class (note the email to be triggered from apex and not via any user action via vf page).
But when i wanted to test it via the "Send Test and Verify Merge Fields" i do not get to see any selection but rather a message
The template does not have a controller that can be selected for preview.
Any input on where i'm going wrong and what needs to be done here please?
I have created a simple visualforce email template to be used in my apex class (note the email to be triggered from apex and not via any user action via vf page).
<messaging:emailTemplate subject="<i>Your campaign {!relatedTo.Name} is due to start.</i>" recipientType="user" relatedToType="Campaign"> <messaging:htmlEmailBody > <html> Dear {!recipient.name}<br></br> <br> Notification that "{!relatedTo.Name}" is due to start today. </br> </html> </messaging:htmlEmailBody> </messaging:emailTemplate>
But when i wanted to test it via the "Send Test and Verify Merge Fields" i do not get to see any selection but rather a message
The template does not have a controller that can be selected for preview.
Any input on where i'm going wrong and what needs to be done here please?
All Answers