I'm sending an email using the cfmail
tag, and trying to attach a PDF file from a URL:
<cfmail to="me@mydomain.com" from="you@yourdomain.com" subject="Subject" type="html">
<cfmailparam file="http://myfilelocation/pdfFile.pdf">
Body of the email
</cfmail>
However, this is not working. Without the cfmailparam
tag, the email sends successfully. If I go to http://myfilelocation/pdffile.pdf
, I see the PDF document that I'm trying to attach. Am I doing something wrong? How can I attach a PDF document to an email from a URL?