I am using the run application command to send automated emails for certain events within our application. The issue I have is that it appears that the command has a maximum of 255 characters that can be sent to it.
So, if I have something like the following:
run application "c:\users\me\sendemails.exe", "-t someone@somewhere.com", "-f me@mycompany.com", "-s This is the subject", etc
The total number of characters I can pass seems to be limited to 255 characters (but not documented that I can find). Is there any way to make this work with more than 255 characters. The issue I have run into is that I have an email application where I need a from and to address, a subject line, a body (which is stored in a file so I have the file pathname) and the email server name. I want to add a log file to log the emails so I can keep track of what is happening but when I add the log file and path, the total length of all parameters now exceeds 255 characters and the process fails.
Any ideas how I can get around this?
*This post is locked for comments