Jump to content
Server Maintenance This Week. ×

Send Email with Full Name


xochi

This topic is 3465 days old. Please don't post here. Open a new topic instead.

Recommended Posts

In FM11 running under Mac OS X 10.8.5, using an email address as follows:
Quote("John Smith <[email protected]>")

Would properly format the email in Apple Mail.

 

 

I recently upgraded my mac (to 10.9.4) and filemaker (to FMP 13) and now this technique is failing.

 

Is there a way to do this in FMP13 and have it work?

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...

I have found a workaround that involves Applescript.   The relevant Applescript commands look like this:

" set eMail to make new outgoing message with properties " &"  { " &
"    subject:" & Quote($subject) & ", " &
"    content:" & Quote($bodyFormatted) & ",  " &
"    visible:true " &
"  } ¶ " &
" repeat with toPerson in toList ¶" &
"    tell eMail ¶" &
"      set eName to extract name from toPerson ¶" &
"      set eAddress to extract address from toPerson ¶" &
"      make new to recipient at end of to recipients with properties { name: eName, address : eAddress} ¶" &
"    end tell ¶" &
"  end repeat ¶" &

which uses the "extract name from" and "extract address from" which are handy applescript functions to convert something like this:

"Real Name <[email protected]>"

to 

name = Real Name
address = [email protected]

I just finished converting a VERY LARGE solution from FM11 to FM13, and this email problem was actually the biggest glitch I found.    

Link to comment
Share on other sites

This topic is 3465 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.