I don't want to launch the mail app, just attach an email to the existing script:
- Code: Select all
-- these variables are modified elsewhere in the script
set eb to "this is the body of my email"
set acStatus to "success"
property emailAddress : "emailaddress@gmail.com"
property emailSubject : "Your Automated Submission"
property newline : ASCII character (10)
-- I was to add an email attachment here
tell application "IndigoServer"
set emailBody to eb
send email to emailAddress with subject emailSubject with body emailBody
send email to "phonenumber@txt.att.net" with subject "Automated AC" with body acStatus
end tell