Skip to main content
February 17, 2009
Question

cfmailparam problem

  • February 17, 2009
  • 3 replies
  • 613 views
Hi i am getting a problem using
<cfmailparam file = "C:\Inetpub\wwwroot\#newinvoice#.pdf" type="PDF">

inside a cfmail, the emails being received have a attachement of .dat not .pdf

any ideas why this is?
This topic has been closed for replies.

3 replies

Inspiring
February 17, 2009
kel45 wrote:
> Hi i am getting a problem using
> <cfmailparam file = "C:\Inetpub\wwwroot\#newinvoice#.pdf" type="PDF">

Type is the mime type of the file:
<cfmailparam file = "C:\Inetpub\wwwroot\#newinvoice#.pdf"
type="application/pdf">

--
Mack
Inspiring
February 17, 2009
type="PDF" is not correct. you must specify correct MIME type of the
file, i.e. type="application/pdf"

also double-check your #newinvoice# variable does not alredy contain
file extension.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Inspiring
February 17, 2009
Hi,

Have you placed your <cfmail> <cfmailparam> tags inside <cfoutput> </cfoutput> blocks?..

HTH