Solved

Displaying fields in Outlook via the web and FileMaker

Posted on 2004-10-15
4
223 Views
Last Modified: 2010-04-27
Is it possible in FileMaker (via the web) and Outlook to create a a form with about 15 fields and a "mail to" link that will open up MS Outlook (once the mail to link is clicked) with those same 15 fields of information displayed on an email?
0
Comment
Question by:shuittny
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 19

Accepted Solution

by:
billmercer earned 500 total points
ID: 12320587
Yes, this fairly straightforward. Basically, you'll need to construct the mailto: link something like this:
<a href="mailto:barbecue@afn.org?&Subject=MESSAGE%20SUBJECT&Body=FIELD1%0DFIELD2%0DFIELD3%0D">Send Mail</a>

Remember that you can't have whitespace or certain other symbols in a URL, so you have to encode any whitespace characters. Use %20 instead of a space character, and %0D when you want a return.

The hardest part of this whole process is probably URL encoding the string. You can use the replace function to replace certain characters with their encoded equivalents, or I believe there's also a third party plugin that does URL encoding for you.  

The ? character separates the arguments for the mailto link. Whatever text follows the ?Subject= piece goes into the message subject, and whatever follows the ?Body= is placed in the main message text.
You can also add ?CC= and ?BC= elements if you want copies of the email sent to others.

To do this in FileMaker, you'll probably want to use a series of calculated fields or scripts to combine the values together. Assuming you have a field called URL, one called emailaddr, one called Subjectfield, and three data fields called field1, field2, and field3. URL encode all the text in the fields, then do something like this:
URL = "mailto:" & emailaddr & "?Subject=" & subjectfield & "?Body="& field1 & "%0D" & field2 & "%0D" & field3

I suggest building the URL string up in stages, rather than trying to do it all in one big long calculation, because it's easier to debug that way if you make a mistake.  

Things to be aware of:
- A mailto link will use whatever the default email client is on the computer, which might not be Outlook if you don't have control of the end users. Most popular mail clients should work with these URLs, but YMMV.
- The link itself could get extremely long, depending on your field sizes.
- In addition to whitespace, there are other characters that can't be used in URLs, so if any of your fields could contain any of them, they should be encoded. For example, the ? character is reserved, so you'd need to replace it with
Here's a link to a reference on URL encoding.
http://www.w3schools.com/html/html_ref_urlencode.asp 
 
0
 
LVL 19

Expert Comment

by:billmercer
ID: 12320641
Oops, I meant to say you'll need to replace the ? character with %3F.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Pop up windows can be a useful feature of any Filemaker database.  Though best used sparingly, they can be employed in a multitude of different ways, for example;  as a splash screen at login, during scripted processes to control user input, as pick…
Having just upgraded from Filemaker 11 to Filemaker 12 over the weekend, we thought we would add some tips for others making the same move.  In general, our installation went without incident. Please note that this is not a replacement for Chapter 5…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question