What kind of difficulty?
From a manual use of Send Mail or in a script with the send mail script step?
From a end Mail in a script. I'm trying to make it so the user can insert a File into a container field, then parse the filepath using
gContainerPath = GetAsText(gContainer)
Set Variable $attachedfile = RightValues(Middle(GLOBALS_tog::gContainerPath; 10; Length(GLOBALS_tog::gContainerPath) -9);
The attachment will not appear in Outlook.
I should mention that it does work properly using Apple Mail.
I haven't seen any reports that match that. You are welcome to post in Report an Issue to see what the FileMaker techs have to say.
I'd extract the filepath with this expression:
Set Variable [$attachedFile ; value: Getvalue ( YourTable::ContainerField ; valueCount ( YourTable::ContainerFIeld ) ) ]
That should work as long as "store a reference" was used when the file is inserted into the container field.
So you don't think I need that calculation field to get the file path?
Thanks for your help.
But be careful of what method is used to insert the file into the container field. The above should work with Insert File. If you used Insert Picture or Insert PDF, you may need to modify the text at the begginning of your filepath so that is starts with "file:" and not "imageMac:" or some other text...
Unfortunately the script step you reccomeneded: GetValue(GLOBALS_tog::gContainer ; ValueCount(GLOBALS_tog::gContainer))
Did not work. No attachment was created, even with Apple Mail.
Also, I'm aware that Insert File must be used in order to get the correct filepath using my method, that's why I will have the insert file scripted so that insert image, etc. will not be possible.
All I can say is that
GetValue(GLOBALS_tog::gContainer ; ValueCount(GLOBALS_tog::gContainer))
Works for me and I see no reason why it should not work for you provided that insert file with "store a reference" is used to insert the file into the global container field.
If you do not clear the "perform without dialog" step, do you see the selected file appear in the dialog as an attachment?
Store as a reference is checked. Also, if Perform Without Dialog is clear, that does NOT produce any kind of dialog box for the user. No differences occurs when Perform Without Dialog is checked or is not checked. That's why I had to create this container field to hold a pdf, because no Send Email dialog box is shown in Filemaker where the user could attach a file.
Then something is very odd here. The following screen shot was captured using FileMaker 11v3 on Windows Xp with MS Outlook. Since I don't own a mac, this is as close as I can get to replicating your system setup. The perform without dialog box was cleared in the Send Mail step.