Ok all -- this code works nice (though I haven't had the chance to test it
on a proper plain text client -- what's the best way to do that, Outlook /
Express etc seem too cunning?). However it requires comments in it to send
properly. Can anyone tell me why? See below:

<cfset boundary = CreateUUID()>
<cfmail query="GetEmail" to="#Email#" from="#request.SiteEmail#"
subject="#GetMailShot.Subject#">

 <cfmailparam name="Content-Type" value="multipart/alternative;
boundary=""#boundary#""">
 --#boundary#
Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding:
8bit <cfinclude template="mailtemplates/PLAIN_adhoc.cfm">

--#boundary#
<!--- This comment is needed or the email comes out as plain text --->
Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding:
quoted-printable

<cfinclude template="mailtemplates/HTML_adhoc.cfm">
<!--- This comment also needed, a blank gap between cfinclude and boundary
produces the blank email I was originally having trouble with --->
--#boundary#--
</cfmail>

FYI- I got the code from
http://www.thenetprofits.co.uk/coldfusion/faq/topic.cfm?TopicID=18

@;^D


----- Original Message -----
From: "Alex Skinner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 27, 2003 6:35 PM
Subject: RE: [ cf-dev ] multipart email -- email coming out blank


> Niks gone to the CFUG meeting mate but check the dev exchange its on
there.
>
> Alex
>
> -----Original Message-----
> From: Colm Brazel [mailto:[EMAIL PROTECTED]
> Sent: 27 March 2003 18:22
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] multipart email -- email coming out blank
>
>
> >>There is a multipart custom tag for CF5,
>
> Nik,
>
> Any chance of letting me have that for CF5,
>
> thanks
>
>
>
> Colm
>
> [EMAIL PROTECTED]
>
>
>
> www.cbweb.net <http://www.cbweb.net>
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
>
>
>
>
>
>
>
> -----Original Message-----
> From: Niklas Richardson [mailto:[EMAIL PROTECTED]
> Sent: 27 March 2003 17:22
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] multipart email -- email coming out blank
>
>
> Hi Damian,
>
> There is a multipart custom tag for CF5, I had to write a CFMX version
> as I didn't realise you could do it so easily with the code you did!
>
> Cheers
>
> Niklas
>
>
> > -----Original Message-----
> > From: Damian Watson [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, March 27, 2003 5:02 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [ cf-dev ] multipart email -- email coming out blank
> >
> >
> > That may also be the trouble! I've got a stupid setup here at
> > the moment
> > with MX server on dev machine but using CF5 on web server so I may be
> > missing a trick *don't ask*. I'll tell you when I've got it working.
> >
> > Nik, does your code work on 5?
> >
> > ----- Original Message -----
> > From: "Niklas Richardson" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, March 27, 2003 3:31 PM
> > Subject: RE: [ cf-dev ] multipart email -- email coming out blank
> >
> >
> > > Damian,
> > >
> > > Does this work in CFMX?
> > >
> > > I wrote a custom tag to output multipart emails for the
> > UKCFUG website.
> > > But if you can do it like this - well, that's a LOT easier!
> > >
> > > Cheers
> > >
> > > Niklas
> > >
> > > > -----Original Message-----
> > > > From: Damian Watson [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, March 27, 2003 2:13 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: [ cf-dev ] multipart email -- email coming out blank
> > > >
> > > >
> > > > Hi got a problem here. For some reason I'm getting a blank
> > > > email sent. No
> > > > errors are generated. Anyone come across this b4? Here's the
> > > > cfmail code:
> > > >
> > > > <cfset boundary = CreateUUID()>
> > > > <cfmail to="#Form.Email#" from="[EMAIL PROTECTED]"
> > > > subject="subject">
> > > > <cfmailparam name="Content-Type" value="multipart/alternative;
> > > > boundary=""#boundary#""">
> > > >  --#boundary#
> > > >  Content-Type: text/plain; charset="iso-8859-1"
> > > > Content-Transfer-Encoding:
> > > > 8bit <cfinclude template="mailtemplates/newmember_plain.cfm">
> > > > --#boundary#
> > > > Content-Type: text/html; charset="iso-8859-1"
> > > > Content-Transfer-Encoding:
> > > > quoted-printable
> > > > <cfinclude template="mailtemplates/newmember_html.cfm">
> > > > --#boundary#--
> > > > </cfmail>
> > > >
> > > >
> > > >
> > > > --
> > > > ** Archive:
> > http://www.mail-archive.com/dev%> 40lists.cfdeveloper.co.uk/
> > >
> > >
> > > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > > For human help, e-mail: [EMAIL PROTECTED]
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > ** Archive:
> > http://www.mail-archive.com/dev%> 40lists.cfdeveloper.co.uk/
> > >
> >
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > > For human help, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >
> > --
> > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> >
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > For human help, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
> --
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.459 / Virus Database: 258 - Release Date: 25/02/2003
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.459 / Virus Database: 258 - Release Date: 25/02/2003
>
>
> --
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
>
>
>
>
>
> --
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
>
>



-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to