function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

How to send VF Form in Email



I have designed a Visualforce page where I have many InputText controls. I want to send same UI of form in an email on click of submit button on page. It can be send either as attachment or in email body but I am getting below error ...


System.VisualforceException: URL starting with ''... is longer than the maximum allowed length of 4,096.


ASPA answer is highly appreciated.


Hai 0701,


Please try with VF email template,where u can send ur VFEmail template using button click ,and also u can u can send that VF as PDF attachment in email.......


Please go through this link,|StartTopic=Content%2Fpages_email_and_templates.htm|SkinName=webhelp


Thanks for the Reply.


I am not saving the information anywhere. It is just a form which will be filled by end-user and need to send in email. VF template works when values are saved in Salesforce.


Please suggest.

yamini prakasam 10yamini prakasam 10
hey did you solve this i olso need to do same thing