Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Calculating email address

Featured Replies

I'm having trouble calculating the proper form of an email address for use in the Send Mail options dialog. I'm using the SMTP server option.

If, for example, I have a person named John Doe (found in Name field) whose email address is [email protected] (found in Email field) and point the TO section of the Send Mail options dialog to the Email field only, all works well. The email sends properly.

But I'd like to send using both the person's name and email address, not the email address alone. In my email client I would simply type John Doe , and that would work. But I can't get a calculation configured to do the same thing. I've tried a couple of things:

Name & " <" & Email & ">" -- Trying to create what I would type

""" & Name & "" <" & Email & ">" -- Trying to enclose Name in quotes in case that makes any difference

After setting the results of a calculation to a variable (which I use in the Send Options dialog), I've looked at the results of both of these in the data viewer and they both look OK but neither works. So I must be leaving something

out but don't know what. I'd appreciate any suggestions.

Thanks!

James

www.james-mc.com

I think the real question here is: does the mail client (in this case, Filemaker) accept addresses in the "John Doe " format*? I haven't tried the SMTP feature yet, but from what you say it seems the answer is no. A better test would be to enter such address into a field and try to send mail using that field.

---

(*) which needs to be unquoted (as per your first example) - based on what works with an external mail client.

  • Author

I think the real question here is: does the mail client (in this case, Filemaker) accept addresses in the "John Doe " format?

Thanks for defining this more clearly. I tried typing the address in directly, and it doesn't send. But in this case, I do get an error message dialog: "Email(s) could not be sent successfully." In the case of setting the address by variable or by calculation, there is no error message dialog. There may be an error generated, but I haven't tried to trap it.

So for now it looks like I need to use the email address without the name.

I appreciate the help.

James

www.james-mc.com

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.