Can anyone post the correct XML for retrieving an Email folder using ANT?
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
Email template can't be fetched with wildcard as we can do for other component so you need to specify the folder name in which you have your email template
<?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce.com/2006/04/metadata"> <types> <members>unfiled$public/EMAILTEMPLATENAME</members> <members>EmailTemplates/EMAILTEMPLATENAME</members> <name>EmailTemplate</name> </types> <version>28.0</version> </Package>
it may be a tedious task to read all email template name and create package.xml out of it so for that purpose you can use eclipse IDE to generate package.xml for you
after completing both steps you can copy package.xml in your ant folder.