EasyCFM.COM ColdFusion Forums / Dreamweaver / CtrlClick Emails using mailto

   Reply to Discussion | New Discussion << previous || next >> 
Posted By Discussion Topic: CtrlClick Emails using mailto

book mark this topic Printer-friendly Version  send this discussion to a friend  new posts last

caldew
04-08-2010 @ 3:40 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Junior Member
Posts: 74
Joined: Aug 2005

Hello

I have a site which has a membership list in an Access database.

The owner would like to have a list of all the member email addresses (pull-down in a form - I have tried this) and then output the selected email addresses, using ctrl click, to their email program (Outlook or equivalent) so that they can spell check and format the email text properly - i.e. just like 'mailto' does at the moment.

How can I achieve this?

Many thanks in anticipation.

Ronnie

donboe
04-12-2010 @ 1:33 AM
Reply
Edit
Profile
Send P.M.
My Gravatar!
Powered by Gravatar
Senior Member
Posts: 474
Joined: Nov 2004

You could add a onChange behaviour to your select like:


<select name="email" onChange="location.href=this.options[this.selectedIndex].value">
<option value="0">select</option>
<cfoutput query="yourQuery">
<option value="Mailto:#Email#">#Email#</option>
</cfoutput>
</select>
</form>


Hope this is what you're looking for.


Website Designed and Developed by Pablo Varando.