Copy link to clipboard
Copied
I have a simple question:
- How do I get the user's Outlook 2007 "New Email Message" box to open up when the user clicks on a button called "Send Email"?
- Outlook is the default Email client on each user
- I need the Outlook box to open, with the following values prefilled:
To: blank (so the user can type in an address)
From: info@email.com
Subject: blah, blah, blah
Body: Hello, etc...
The part I'm having trouble with is getting the Send To field to be blank or unfilled?
Copy link to clipboard
Copied
Hey There,
Try this out:
<a href="mailto:? --- followed by additional desired code</a>
Basically leaving after mailto:blank, should do the trick on the to field.
Leonard B
Copy link to clipboard
Copied
Leonard, Thanks for the quick post..
Along with your tip, I ended up doing the following, which worked perfectly:
-------------------------------------------
<cfset to_email="">
<cfset subject_text="Here is the Link to the Form..">
<cfset body_text="Welcome to the Step by Step Procedure!%0A">
<cfoutput><a href = "mailto:#to_email#?subject=#subject_text#&body=#body_text#">Click to Send Email Link to Customer</a></cfoutput>
------------------------------------------
Note: I used the %0A at the end of my Body text to help with formatting.
One other question: How do I make this code above run directly from my SPRY menu?
- Currently I have to open another form and then click on hyperlink text on the form
- I would rather bypass the new form page altogether, and just call the code from my SPRY menu?
- Here is the code behind my SPRY Drop-Down menu item:
<li><a href="form_emailLink.cfm" target="_blank">Send Form Link</a></li>
Copy link to clipboard
Copied
Hey There,
If I understand what it is you want to do, try this:
In the href component of your spry menu, just copy and paste the
href of your link into the href of your spry menu component and
remove the _blank.
ie: mailto:#to_email#?subject=#subject_text#&body=#body_text#
Then when the menu item is clicked on, it will open up outlook with info
inserted as desired.
Leonard B