Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I would like to create an Automator application that reads the address book and sends an email from the default email account with the content of the addr. book search result.

Everything works except before sending the email the use is asked to press the send button. Is it possible to achieve this with no user interaction ?

share|improve this question
add comment

2 Answers

you can directly do an applescript to send an email and call it from automator:

   tell application "Mail"
      activate
      set newMessage to make new outgoing message with properties {account:"Account Detail", subject:"Mail Subject", content:"Content"}
      tell newMessage  
        make new to recipient at end of to recipients with properties {address:theRecipient}
        set visible to true
      end tell
      send newMessage
    end tell

You would just need to get theRecipient from the input passed to the AppleScript action. Also, you need to replace the properties on the third line with details of your Mail account.

set theRecipient to (item 1 of input)

should do it.

share|improve this answer
add comment

You can make a Do AppleScript block, and use AppleScript to tell Mail to click the Send menu item.

Directions here.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.