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 <[EMAIL PROTECTED]> 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 post to this group, send email to cfaussie@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en -~----------~----~----~----~------~----~------~--~---