Jalz Posted September 14, 2007 Posted September 14, 2007 Hi Guys, Is it possible to attache say 3 external attachments in the Send Mail script. Cheers Jalz
aholtzapfel Posted September 14, 2007 Posted September 14, 2007 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)
Jalz Posted September 14, 2007 Author Posted September 14, 2007 Thanks aholtzapfel, My clients are Windows based, so this VBScript would be extremely useful! Do you happen to use exchange and FileMaker?
aholtzapfel Posted September 15, 2007 Posted September 15, 2007 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
Jalz Posted September 15, 2007 Author Posted September 15, 2007 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?
aholtzapfel Posted September 16, 2007 Posted September 16, 2007 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now