• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

cfmailparam problem

New Here ,
Feb 17, 2009 Feb 17, 2009

Copy link to clipboard

Copied

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?
TOPICS
Advanced techniques

Views

559

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Feb 17, 2009 Feb 17, 2009

Copy link to clipboard

Copied

Hi,

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

HTH

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 17, 2009 Feb 17, 2009

Copy link to clipboard

Copied

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/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 17, 2009 Feb 17, 2009

Copy link to clipboard

Copied

LATEST
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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation