Trying to sort out some best options for emailing attachments and getting them to the destination needed.
The CFMail coding below works fine (goes to gmails and hotmails for sure) - but sometimes users relate that they don't get the email - this strikes me as an email validation problem on the server or spam folder issue. But with the server - server is setup properly I believe - and not on any BlackLists I know of.
I looked into the < a href = "mailto: with an attachment - but no go with that - and as I read - becomes perhaps a bigger security issue.
Does anyone have any advice - how I could best attach a file to email - and avoid the users not getting it etc... Thx for any help or suggestions.
<cfset pdfpath = expandpath('./_pdf/')>
<cfmail type="html" from="noreply@xxxxxxxxx.com" to="#tlist#" mimeattach="#pdfpath##id#_#pdf_id#.pdf" subject="Report - #id#_#pdf_id#.pdf">
</cfmail>
<a href="mailto:xxxxxxxey@gmail.com?subject=my report&body=Report - #id#_#pdf_id#.pdf&attachment=#pdfpath##id#_#pdf_id#.pdf">Mail</a>