0

I create visualforce email template when i add the code for button

<apex:form>
                <apex:commandButton action="{!send}" value="Send my email" id="theButton"/>
    </apex:form>

its show me error "messaging:emailTemplate cannot contain apex:form." so for this i create visaulforce component and add this component in to visualforce email template <c:createlead/> and add button here in component. The component save successfully but still visualfroce email template give same error.How to solve this ??

1 Answer 1

2

You can't use Salesforce forms in an email. You would want to use something like Web 2 Any or something else (please do research before making any purchasing decisions), or you can set up a Salesforce Site and host your Visualforce page there; the email would contain a link to the Site where your subscribers can securely enter their information.

You must log in to answer this question.