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.

Dynamic Email Attachments

Featured Replies

Righto then, i have filemaker 8 pro... yet despite what i read somewhere the send mail script step still asks me to specifically reference a particular file instead of allowing me to reference a field with a file path or something similar... i know a way i could do it with one static attachment with the user being able to change the file and it just exporting to the defined location... but i need multiple attachments for different user modifiable and addable email templates etc...

Also, is there anyway at all to incorporate a stored image into an email (im guessing not seeing as the result is locked to text)... but if anyone has had any success with using pre-defined microsoft outlook footers etc. please let me know..

Thanks for help, Genx

What you've probably read is that you can use a variable in the "specify" dialog. That variable would then hold a valid path to an existing file.

  • Author

probably... could you explain further please?

  • Author

so hold on, you can reference a stored variable that would contain a file path instead of just a statically stored filepath within the specify dialogue?..

Genx

Hi,

If you are using FM version 8 then you can accept the number of attachments in the global field and then set those values from the global field into a variable. Further specify those variables in the Attachment dialog box in send mail script. This will allow you to set multiple attachments that are selected by the user dynamically.

Does this method solve your problem?

Regards,

MetaSys

Edited by Guest

  • Author

well that whole process was a bit silly, i dont see why not just allow you to reference a field... anyway yeah the variable thingo worked.

Cheers for help, genx

How about this: how do you export the contents of a container field into an email attachment, but specify the name of the file depending on the type of attachment? Will I need to use the Troi Fileplug-in?

In other words, some of my attachments are PDFs, som Word docs, etc. I want the user to be able to easily open the attachment when it arrives, and not have to pick the application.

Sorry -- this was covered before -- I figured it out. Brilliant feature that GetAsText!

  • 4 weeks later...
  • Newbies

Hi!

I wish I could say I got this thing to work in my solution! Script writes a true file path into variable all right - but only the first file path finds its way into the eMail! All the rest is ignored. the variable says s.th. like

filewin:/C:/index.html

filewin:/C:/enter.html

#2 gets ignored...

what do I do wrong ? Thx a lot ! Jo.

  • 2 months later...

Hi,

If you are using FM version 8 then you can accept the number of attachments in the global field and then set those values from the global field into a variable. Further specify those variables in the Attachment dialog box in send mail script. This will allow you to set multiple attachments that are selected by the user dynamically.

Can you please explain this?

I have tried to send more than one attachment with every thing I could think of, but still no luck. You seem to know... ;)

Thanks,

/andreas

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.