Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

In the send mail dialog I can only get one attachment to send ( need to send 2)


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

Recommended Posts

Posted

Hello

I have two attachments I would like to send with my email. I check the attach file box at the bottom of the send mail script step. And then I select 2 attachments. Only the first one sends. I would like to send 2 and there is provision for doing so. Is there something I need to do to send 2 attachments?

Thanks

Dave

Posted

unfortunately FM won't let you attach more than one file to an e-mail. When you list more than one file path it searches the first one, and if it doesn't exist it uses the second file path.

There is a work around using applescript to send the mail instead. writing one is on my to-do list.

  • 3 weeks later...
Posted

put this in your script "preform applescript"

and specify:


tell application "Mail"

	set theAttachments to {"Users/jay/Desktop/Skills.png", "Users/jay/Desktop/bhabro.pdf"}

	set displayForManualSend to true

	set addr to "[email protected]"

	set subj to "Howdy there"

	set body to " Body"

	set msg to make new outgoing message with properties {subject:subj, content:body}

	tell msg

		make new to recipient at end of to recipients with properties {address:addr}

	end tell

	tell content of msg

		repeat with theAttachment in theAttachments

			make new attachment with properties {file name:theAttachment} at after last paragraph

		end repeat

	end tell

end tell

fill in those variables, if you want to make the script dynamic (as you probally do) you'll have to enter it as a calculated script, just remember to escape all the quote ([color:red]") symbols ie.([color:red]")

Posted

Hello Hartmut,

If you want to send multiple attachment, you can do it with VB Script also.

Here is the link regarding the information for multiple attachment:

http://fmforums.com/forum/showtopic.php?tid/188017/

Hope it helps...

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