+ Start a Discussion
Apex developer 21Apex developer 21 

attach attachments from notes & attachments from Quote record

I have this visualforce emailtemplate where i can send the attachments on quotes as a link but the receiver needs to be logged in. How do i manage this whitout a login. Or can i send the body of the attachment with the mail. Here is my code:
<messaging:emailTemplate recipientType="Contact"
    subject="Attachment for Quote: {!relatedTo.name}"

    <messaging:htmlEmailBody >
            <p>Dear {!recipient.name},</p>
             <p>..   ..</p>
        <apex:repeat var="cx" value="{!relatedTo.Attachments}">
          <a href="{!URLFOR($Action.Attachment.Download, cx.Id)}" target="_blank" styleClass="btn">Download {!cx.Name}</a>