Solved

Displaying fields in Outlook via the web and FileMaker

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Conversion Steps for merging and consolidating separate Filemaker files The following is a step-by-step guide for the process of consolidating two or more FileMaker files (version 7 and later) into a single file with multiple tables. Sometimes th…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

860 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