Yeah, Steve As single <cfmailpart>tag is likely to add another blank part, I always do like this:
For explicit text email: <cfmail blahblah [type="text"]>#textContent#</cfmail> For explicit html email: <cfmail blahblah type="html">#htmlContent#</cfmail> or When multiparts needed: <cfmail blahblah> <cfmailpart type="text">#textContent#</cfmailpart> <cfmailpart type="html">#htmlContent#</cfmailpart> </cfmail> With above, most email clients render an email as expected, even though they may not be a good practice... HTH [EMAIL PROTECTED] for previious redundant email On 07/07/05, Steve Onnis <[EMAIL PROTECTED]> wrote: > > With the following.......... > > <cfmail to="[EMAIL PROTECTED]" from="[EMAIL PROTECTED]" subject="subject > line"> > <cfmailpart type="text">#textContent#</cfmailpart> > </cfmail> > > You would think that CF would be smart enough to say "Hey there is a > CFMAILPART tag inside me thats set to text, so i wont add another text mime > area to the email". Same goes with the HTML type aswell. > > The above mail tag would then end up adding 2 seperate text mime areas. > > Thats what my issue is here. Is that wrong to expect? > > Steve > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Sean > Corfield > Sent: Thursday, July 07, 2005 10:24 AM > To: CFAussie Mailing List > Subject: [cfaussie] Re: CFMAIL / CFMAILPART HUUUUUGE BUG! > > On 7/6/05, Pat Branley <[EMAIL PROTECTED]> wrote: > > So the correct usage for a multi-part mail if i want to send a html > > mail, but want a text part as a backup would be: > > > > <cfmail to="[EMAIL PROTECTED]" from="[EMAIL PROTECTED]" subject="subject > > line" type="text"> > > <cfmailpart type="text/html">#htmlContent#</cfmailpart> > > #textContent# > > </cfmail> > > > > Is this right ? > > Correct. type= is optional in <cfmail> since the default is text. You > could use just type="html" in <cfmailpart> if you want to save > keystrokes. > -- > Sean A Corfield -- http://corfield.org/ > Team Fusebox -- http://fusebox.org/ > Got Gmail? -- I have 50, yes 50, invites to give away! > > "If you're not annoying somebody, you're not really alive." > -- Margaret Atwood > > --- > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > To unsubscribe send a blank email to > [EMAIL PROTECTED] > Aussie Macromedia Developers: http://lists.daemon.com.au/ > > --- > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > To unsubscribe send a blank email to [EMAIL PROTECTED] > Aussie Macromedia Developers: http://lists.daemon.com.au/ > --- You are currently subscribed to cfaussie as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
