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

multiple attachments


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

Recommended Posts

Posted

Hi Guys,

Is it possible to attache say 3 external attachments in the Send Mail script.

Cheers

Jalz

Posted

No, not with a send mail script step. Even if you have more than one file listed, it will only use the first valid one.

I have worked around this by using a VBS script on windows to do this, and I'm certain it can also be done with an applescript but it is a fair amount of work to do. (I have a sample file somewhere on the forums that does do this with a vbs on window, applescript I can't help you with)

Posted

Thanks aholtzapfel,

My clients are Windows based, so this VBScript would be extremely useful!

Do you happen to use exchange and FileMaker?

Posted

Here is a link to the file I posted, It is not perfect but should do what you want. The VBS script is embedded in a FM file. It uses outlook to send the email. I use a variation of this daily, and we do use an exchange server (although it doesn't matter, it will use whatever account is set-up in outlook).

Link ->Sample VBS to send mail w/ multiple attachments

Posted

Thankyou aholtzapfel,

I shall try your script when I'm in work on Monday.

Interesting you say you use Exchange with FileMaker. When ever you use the sendmail script with perfor without dialog checked - Do you ever get a message from outlook saying something along the lines of "A program is trying to send a message on behalf of you, click allow or deny"

I so how have you got rid of it?

Posted

When ever you use the sendmail script with perfor without dialog checked - Do you ever get a message from outlook saying something along the lines of "A program is trying to send a message on behalf of you, click allow or deny"

If so how have you got rid of it?

I have not, sorry, I have looked into it and I think there is a way but it is still a little beyond me, the solution involves signing the vbs script, a single line of code in the vbs script that would refer to a certificate issued by a Certificate authority and installed on the system. Because of the nature of vbs (a script can be written to do almost anything, including trashing a system.) the information is a little hard to come by. When the script runs for the first time windows will ask if you want to allow it. You can allow and ask it to remember the choice. A certificate would avoid this warning, and may avoid the warning from outlook about sending mail but I cannot be sure.

In the VBS script there are 3 commands that can be used for the email

.save (just saves the email in drafts folder)

.display (works like the send mail script step with dialog)

.send (works like the send mail script step w/out dialog, security warning and all)

for my solution I have used the .display command and was good enough.

If you know any Visual Basic Programmers (very similar to VBS) they may have a better way of dealing with it.

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