I don't have an answer to the line break problem, but you can spawn the mail
client with some JavaScript:

        document.location='mailto:[EMAIL PROTECTED]';

Note that this may have some funky side effects with some browsers, so try
it out before adding this to a production site.

Out of curiosity, why are you opening the mail client?  Why not just use
CFMAIL to send mail as if from the user?

Also note that using "?body=" in your mailto: link can fail sometimes and is
not a wholly reliable way of doing this.  A few years back, I wrote a FAQ
entry for doing the same with the subject.  The same ideas apply here.
Check out http://www.sightspecific.com/~mosh/WWW_FAQ/mailsubj.html for the
FAQ.

--
Mosh Teitelbaum
evoch, LLC
Tel: (301) 625-9191
Fax: (301) 933-3651
Email: [EMAIL PROTECTED]
WWW: http://www.evoch.com/


> -----Original Message-----
> From: Sosnow, Michael [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 27, 2002 2:24 PM
> To: CF-Talk
> Subject: spawn the e-mail client & line breaks in mailto:
>
>
> I am trying to write an application that will allow the user to
> subscribe to
> multiple Listserv lists. I want them to fill out a form that when
> submitted
> will automatically open their mail client with the subscribe
> commands in the
> body of the e-mail. I can construct the mailto on submittal of the form
>
> <A HREF="mailto:[EMAIL PROTECTED]?body=#mybody#";>Link text</A>
>
> but I don't know how to spawn the client on execution of the template.
> And the second problem I have it getting "mybody" have line breaks, as I
> need each subscribe command on a separate line. I tried:
>
> <cfset mybody="Subscribe myfirstlist [EMAIL PROTECTED]
> #chr(13)##chr(10)#
> Subscribe mynextlist [EMAIL PROTECTED] ">
>
> and a few other variations with no luck.
>
> Any help would be appreciated.
>
> Michael Sosnow
>
>
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Reply via email to