Good idea, Bert.  Steve Nelson also suggested that..or was it Nat.
I don't remember, but one of them said a LIVE parameter would be
very slick, so you could use this tag in place of CFMAIL altogether.

Maybe when I have more time to figure that one out, I will.  But
CFMAIL is iffy enough without making it a CF custom tag.

I'll package up the testmail tag and put it up on www.fusium.com,
in the tools section.

-Erik



> -----Original Message-----
> From: Bert Dawson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 21, 2002 12:36 PM
> To: '[EMAIL PROTECTED]'
> Subject: RE: testing and prototyping CFMAIL
>
>
> Looks nice Erik - lots of colours and table borders - have you been taking
> lessons from you-know-who?
>
> Along the same sort of lines, but further down the line, in a
> dev/test/live
> situation, i use a UDF to ensure i don't send out mails to the
> wrong person
> while deving and testing.
> Something like:
>
> in the "application.cfm" (or whatever the equivalent):
>
> <cfscript>
>       function fn_tmp_liveemail(mailaddress) {
>               return mailaddress;
>       }
>       function fn_tmp_testmail(mailaddress) {
>               return '[#mailaddress#] <[EMAIL PROTECTED]>';
>       }
>       function fn_tmp_devemail(mailaddress) {
>               return '[#mailaddress#] <[EMAIL PROTECTED]>';
>       }
>
>       switch(request.site_status)
>       {
>               case "live":
>               {
>                       fn_email                        = fn_tmp_liveemail;
>                       break;
>               }
>               case "test":
>               {
>                       fn_email                        = fn_tmp_testmail;
>                       break;
>               }
>               case "dev":
>               {
>                       fn_email                        = fn_tmp_testmail;
>                       break;
>               }
>       } //end switch
>
> </cfscript>
>
> Then whereever i use cfmail and don't want to actually send out the mail:
>
> <cfmail to="#fn_email('[EMAIL PROTECTED]')#" etc...
>
> Bert
>
> ps thanks to www.fusium.com for the "realname <[EMAIL PROTECTED]>" tip....
>
> > -----Original Message-----
> > From: Erik Voldengen [mailto:[EMAIL PROTECTED]]
> > Sent: 21 May 2002 20:06
> > To: [EMAIL PROTECTED]
> > Subject: testing and prototyping CFMAIL
> >
> >
> > Hey all.  I have a project I'm working on that does a lot
> > of CFMAILing.  When I test new or modified code, I usually
> > either changed to send to email address, or commented out
> > the cfmail tag and used CFOUTPUT instead.
> >
> > This project had me doing that enough to where I finally
> > wrote a neat little tag that you can use in place of cfmail.
> > You just replace the <cfmail> with <cf_testmail> and keep
> > all the parameters.
> >
> > It's really helped debugging and development.  But I've also
> > recently started using it in prototypes, and it's actually kind
> > of cool.  It shows exactly what's going to get mailed out without
> > having to set up cfmail or send live email messages.
> >
> > So I don't know how anyone else is doing prototyping of
> > CFMAIL code, but I am really liking this tag for that task,
> > and so is my client.
> >
> > Here's a demo link.  If anyone thinks this is nifty, I'll put
> > the tag up on the site for download.  Scroll down and look at
> > both tests on this page:
> >
> > http://www.fusium.com/scratch/mailtag.cfm
> >
> > -Erik
> >
> >
> >
>
>
>

==^================================================================
This email was sent to: [email protected]

EASY UNSUBSCRIBE click here: http://topica.com/u/?bUrFMa.bV0Kx9
Or send an email to: [EMAIL PROTECTED]

T O P I C A -- Register now to manage your mail!
http://www.topica.com/partner/tag02/register
==^================================================================


Reply via email to