<messaging:attachment filename="closing_conditions.csv" >
<apex:repeat var="cx" value="{!relatedTo.Pre_Closing_Conditions__r}">
{!cx.Name}, {!cx.Closing_Condition__c}, {!cx.Type__c}, {!cx.Comments__c}
</apex:repeat>
</messaging:attachment>