Hi there,

I was looking for an answer for a problem I'm running with CFmail and I 
found this thread.

I have a form that is requesting to submit a file, but when I call the file 
from <CFMAIL> I don't receive the entire logic path to the file, just the 
file name.
Any idea how to get the entire path?

I'm using this on the form to collect the file name: 
<input type="file" name="xrays" id="xrays" accept="image/jpeg">

And this with the <CFMAIL.. 
<CFMAILPARAM file="#Form.xrays#" disposition="attachment">

This is the error I'm receiving:
The resource IMG_5868.JPG was not found. 

Any ideas?

Thanks,


On Wednesday, January 23, 2008 9:10:22 PM UTC-8, and...@andyscott.id.au 
wrote:
>
> Hmm, I would perhaps class that as a bug in CF. One should not have to do
> that:-)
>
>
> Andrew Scott
> Senior Coldfusion Developer
> Aegeon Pty. Ltd.
> www.aegeon.com.au
> Phone: +613  9015 8628
> Mobile: 0404 998 273
>
> -----Original Message-----
> From: cfau...@googlegroups.com <javascript:> [mailto:
> cfau...@googlegroups.com <javascript:>] On Behalf
> Of KC Kuok
> Sent: Thursday, 24 January 2008 3:47 PM
> To: cfaussie
> Subject: [cfaussie] Re: Help with CFmail sending multiple attachments
>
>
> Hi guys, just solved my own problem... it seems that <cfmailparam>
> needs to be on its own line (and i suspect with 1 blank line spacing).
> In the loop i did
>
> This would not work properly
> <CFLOOP>
> <cfmailparam>
> </CFLOOP>
>
> but this did...
>
> <CFLOOP>
>
> <cfmailparam>
> </CFLOOP>
>
> So it seems cfmailparam needs extremely clear linebreaks from both the
> rest of the body of text, AND other cfmailparam tags.
>
> Hope this helps someone.
>
> Cheers,
> Chong
>
>
> On Jan 24, 2:23 pm, KC Kuok <kck...@gmail.com> wrote:
> > Hi all,
> >
> > I am having a little trouble generating mail with multiple
> > attachments, they seem to be rejected then placed into Undeliverables
> > folder. I have checked the path and it looks correct, and I am out of
> > ideas. The server is a up-to-date CF 7 standard server.
> >
> > *Note: I know i am sending only one file, but the main issue is that
> > cfmailparam doesn't seem to work when attaching attachments. I have
> > tested using mimeattach and it works. The server will spool and send
> > emails without attachment and emails with attachment declared in
> > mimeattach in the CFMAIL tag.
> >
> > I have also refered to a few sites and i do not see the difference
> > between their code and mine below, so fresh eyes and help is much
> > appreciated.
> >
> > Thanks,
> > Chong
> >
> > This is what is in the Undeliverables folder...
> >
> > server:  ...:25
> > from:  ...
> > to:  ...
> > cc:  ...
> > subject:  ...
> > type:  text/html; charset=UTF-8
> > X-Mailer:  ColdFusion MX Application Server
> > body:  ...
> > file:  d:\sites\mymlc\wwwroot\...\test1.txt
> > file-type:  text/plain; name=test1.txt
> > file-disposition:  attachment
> >
> > This is roughly what I use to generate the mail
> >
> > <cfmail ...>
> > ...<cfmailparam file="#attachments[1].attachedfile#"
> > disposition="attachment">
> > </cfmail>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cfaussie+unsubscr...@googlegroups.com.
To post to this group, send email to cfaussie@googlegroups.com.
Visit this group at http://groups.google.com/group/cfaussie.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to