Я пытаюсь отправить электронное письмо с вложенным файлом, но получаю сообщение об ошибке, с которой я не знаком.
Это мой код для тега <cfmail>
:
<CFMAIL FROM="[email protected]" TO="[email protected]" SUBJECT="Test" type="HTML">
<P> This is the attachments test</P>
<p> For this test to be successful, we need to receive some file attachments with this email</p>
<cfsilent>
<cfloop query="result">
<cfmailparam file="#result.NAME#" disposition="attachment">
</cfloop>
</cfsilent>
</cfmail>
И это ошибка:
The resource 2011093475839213.txt was not found.
**The root cause was: ''.**
The error occurred in E:\sites\Example.Com\FolderExistsTest.cfm: line 71
69 : <cfloop query="result">
70 :
71 : <cfmailparam file="#result.NAME#" disposition="attachment" type="text">
72 :
73 : </cfloop>
Обратите внимание, что файл, который я пытаюсь прикрепить, существует.
<cfmailparam file="#CurrentDirectory#\#result.NAME#" disposition="attachment" type="text">
- person Geo   schedule 20.06.2012