+ Start a Discussion
Madhusudan Singh 19Madhusudan Singh 19 

• You can't add attachments to an email that uses a Visualforce template. Remove the attachment and try again.

Hi All
 
In lightning when I am trying to send email after selecting one of the template of  ‘Classic Email Template’ and explicitly adding an attachments, I am getting below errors.
  • You can't add attachments to an email that uses a Visualforce template. Remove the attachment and try again.
Please let me know what all options left for me.

Regards
Madhusudan Singh
Khan AnasKhan Anas (Salesforce Developers) 
Hi Madhusudan,

Greetings to you!

Please refer to below links:

Considerations for Using Your Classic Email Templates in Lightning Experience: https://help.salesforce.com/articleView?id=classic_templates_in_lightning_considerations.htm&type=5

Attach a file to an email template: https://help.salesforce.com/articleView?id=000004324&type=1

Also, please refer to the below links which might help you further with the above requirement.

https://success.salesforce.com/answers?id=9063A000000e5qiQAA

https://help.salesforce.com/articleView?id=email_templates_access_sharing.htm&type=0

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
Deepali KulshresthaDeepali Kulshrestha
Hi Madhusudan,
Greetings to you!

Connect your visualforce page with lightning the try this.
Looks like you're using Classic Template when sending email in Lightning Experience. Attachments, Merge Fields and Preview buttons are not available when using Classic Template in Lightning Experience. You may want to try attaching the file directly to the email template as a workaround or start using Lightning Templates. That way, you will not worry about utilizing the Attachments, Merge Fields and Preview buttons.
 
For more information on using your Classic Email Templates in Lightning Experience, please check the following articles:

Considerations for Using Your Classic Email Templates in Lightning Experience (http://help.salesforce.com/articleView?id=classic_templates_in_lightning_considerations.htm&type=0) 
Access and Sharing for Email Merge Fields, Templates, and Attachments in Lightning Experience (http://help.salesforce.com/articleView?id=email_templates_access_sharing.htm&type=0) 
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha.