Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Send Email with Full Name


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

Recommended Posts

Posted

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?

  • 2 weeks later...
Posted

More info:

 

In FM13, the following address format works (in that, the email is actually sent):

 

"John Smith <[email protected]>"

 

However, only the email address is kept, the "real name" part is lost.

 

Is anyone else running into this issue?

  • 2 months later...
Posted

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.    

This topic is 3661 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.