Solved

Displaying fields in Outlook via the web and FileMaker

Posted on 2004-10-15
4
218 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Problem: You have a hosted FileMaker database and users are tired of having to use Open Remote or Open Recent to access the database. They say, "can't you just give us something to double-click on rather than have to go through those dialogs?" An…
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…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now