That's right. You need to specify both mail parts. ALSO the "text/plain" one has to be first, like below.
Also cfoutput is not needed inside cfmail, unless you are outputting a query using grouping. <cfmail from="#arguments.sFrom#" to="#arguments.sRecipients#" subject="#arguments.sSubject#" failto="testf...@lmassey.ac.nz"> <cfmailpart type="plain"> I am some plain text </cfmailpart> <cfmailpart type="html"> <cfoutput> #arguments.sContent# </cfoutput> </cfmailpart> </cfmail> On 25 August 2011 13:05, Barry Chesterman <barrychester...@gmail.com> wrote: > I have fixed it by not using cfmailpart parameters, maybe it's because I > didn't have a text part? > > <cfmail from="#arguments.sFrom#" to="#arguments.sRecipients#" > subject="#arguments.sSubject#" failto="testf...@massey.ac.nz" > charset="utf-8" type="html"> > > <cfoutput> > #arguments.sContent# > </cfoutput> > </cfmail> > > On Thu, Aug 25, 2011 at 2:52 PM, BarryC <barrychester...@gmail.com> wrote: > >> Hi, >> >> I have a problem where my HTML e-mails are empty when sent to Gmail, >> but fine when sent to my standard e-mail viewed through outlook. >> >> The coldfusion code i'm using to send my e-mail is: >> >> <cfmail from="#arguments.sFrom#" to="#arguments.sRecipients#" >> subject="#arguments.sSubject#" failto="testf...@lmassey.ac.nz"> >> <cfmailpart type="html"> >> <cfoutput> >> #arguments.sContent# >> </cfoutput> >> </cfmailpart> >> </cfmail> >> >> the from, to, and subject values work fine, it seems to be the >> contents of the e-mail that has the problem. >> I've validated the HTML inside the cfoutput tags which validates fine. >> I'm a bit stumped, has anyone else had this issue? >> >> Thanks >> Barry > > > -- > 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 > cfaussie+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/cfaussie?hl=en. > -- 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 cfaussie+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.