Entourage email script

I am new to scripting but i have manged to put this script together to compose an email but can anyone advise how i can add 2 or 3 email address to this rather than just one, or an address from a group?
Also i need to add some text to the main body, is this possible?
set strRecipientAddr to "[email protected]"
set strRecipientName to "Jane"
set tDate to do shell script "date +%v"
set subjectvar to "NEW ORDERS/Jane " & tDate
tell application "Microsoft Entourage"
set composeMessage to (a reference to (make new outgoing message ¬
with properties {recipient:{address:strRecipientAddr, display name:strRecipientName, recipient type:to recipient}, subject:subjectvar} ¬
--send composeMessage
end tell

Sample code is below.
--- Code starts here ---
set {rName01, rAddress01} to {"Shemp Howard", "[email protected]"} -- 'To:' recipient.
set {rName02, rAddress02} to {"Moe Howard", "[email protected]"} -- 'Cc:' recipient.
set {rName03, rAddress03} to {"Curly Howard", "[email protected]"} -- 'Cc:' recipient.
set {rName04, rAddress04} to {"Larry Fine", "[email protected]"} -- 'Bcc:' recipient.
set tContent to "Here is the requested information." -- 'Contnets:' or 'Message' string.
set tSubject to "NEW ORDERS / " & rName01 & ", " & (do shell script "date +%v") -- 'Subject:' string.
tell application "Microsoft Entourage"
set tMessage to make new outgoing message with properties {recipient:(rName01 & my format_eMailAddress(rAddress01)), CC recipients:(rName02 & my format_eMailAddress(rAddress02) & ", " & rName03 & my format_eMailAddress(rAddress03)), BCC recipients:(rName04 & my format_eMailAddress(rAddress04)), subject:tSubject, content:tContent}
send tMessage
end tell
on format_eMailAddress(eMailAddress)
return " <" & eMailAddress & ">"
end format_eMailAddress
--- Code ends here ---
View 'Re: Entourage Bcc and cc' for additional information.

Similar Messages

  • HT5167 did anyone else have their entourage email app shut down with no way to access it?

    downloading 10.7.4 shut down my entourage email program.  I cannot access it at all.  I also cannot get any of my passwords to work on any email solution.  ie. I downloaded the free trial of MS Word and tried Mail.  Neither will transfer entourage data.  they say they can't find it.  I can't get my passwords to work on either of them also.
    anybody else have this  problem?

    OK....I used the 'maintenance' utility, and ran scripts, repaired permissions, etc. When my computer restarted, I went to my wifes profile, ran 'disk utility' to repair permissions on her profile. Then I opened her browser and cleared her data, ie search cache, website cache, everything except her logon data. When that was done, I went back to my profile, and opened the browser. I'm at that point now, and all seems to be well. But then it seemed well when this first occured. Any guesses as to why this happened or what might have caused it to happen? A program conflict? A visit to a data-mining webpage? I know that some will tell you (or me) that macs are supposedly immune to viral or malware attacks, but there also are those who will argue that it is impossible to protect any computer, even a mac, from all infections. So, part curiosity and part pessimism create a curiosity. Any input would help.
    Thanks.

  • Entourage email and icloud

    I recently switched from MobileMe to iCloud.  I used Entourage for my email prior to this switch.  I've switched to Mail now, however I need to have access to my Entourage email somehow.  I'm at a loss and a bit frustrated.  I appreciate any help you can give me!

    Hi all...this problem has been plaguing me for months as well.  Since obviously we can't rely on Microsoft to remedy the problem, I have found a work around.  It's not ideal, but works.  I found an Applescript for moving items from one calendar to another and modified it.  The below script will copy events from one calendar and duplicate them to another calendar.  If you click on the Calendars tab in iCal, you'll notice there is an Entourage calendar "On My Mac" and then the list of iCloud calendars.  Simply copy the below script into Applescript and change the calendar names to your specific calendars.  The first lines will copy Entourage events to the iCloud recognized calendar and the second will copy events from your iPhone to Entourage.  Save your script and run it.
    tell application "iCal"
              set allEvents to events of calendar "Entourage"
              repeat with theEvent in allEvents
                        copy theEvent to end of events of calendar "iCloud"
              end repeat
    end tell
    tell application "iCal"
              set allEvents to events of calendar "iCloud"
              repeat with theEvent in allEvents
                        copy theEvent to end of events of calendar "Entourage"
              end repeat
    end tell

  • Render and Email script

    Hello everybody. I have a question that I have thoroughly researched on the web with no results.
    I am trying to get the default After Effects "Render and Email" script to run properly. I have only been able to successfully send FROM one specific email address TO another (slightly less specific) email address. Most other email services I put in (icloud, gmail, etc) all give strange errors upon execution.
    For the SENDING email address, I'm currently using one I created that is a part of my web hosting account (this is the only account I am able to successfully send from). For RECEIVING, I've only successfully gotten my gmail address to work. All other receiving addresses don't always give me error, but also never show up. Either that, or I get very weird errors. The most common one I get is "Unaable to send mail. 533 5.7.1 AUTH command is not enabled."
    I haven't been able to find this error documented anywhere online. I'd like to be able to send emails to my icloud account, since it pushes email notifications to my phone in real time.
    Long ago someone by the name of Ko Maruyama supposedly explained all this in detail, but the writeup was posted on a .mac website (http://homepage.mac.com/komaruyama/Tutorials/AE/AE_javamail/AE_mail.html), which Apple officially discontinued/took down several years ago.
    Does anyone have any experience with this?

    For Mac, the path is of course slightly different. If you cannot delete the file, you should at least be able to edit it in Extend Script Toolkit or any text editor or run the script separately to change its config data. Works for me...
    Mylenium

  • I had to reload my older Imac with snow leopard and I am unable to get my backup entourage email back??

    Trying to bring back my entourage email from Time Machine. Reloaded 10.6.8 have everything else working, but no email???

    Trying to bring back my entourage email from Time Machine. Reloaded 10.6.8 have everything else working, but no email???

  • I received a .pdf document as an attachment to an Entourage Email. It refuse to print on my HP4050N printer which is otherwise performing as advertised. Printing fron the desktop, Adobe 9.4.4 nor Preview won't work. I have a PowerPC G5, OS 10.4.11.

    I received a .pdf document as an attachment to an Entourage Email. It refuse to print on my HP4050N printer which is otherwise performing as advertised. Printing fron the desktop, Adobe 9.4.4 nor Preview won't work. I have a PowerPC G5, OS 10.4.11.

    I think the file has somehow been corrupted. Can you have the person that sent it to you send another copy?
     Cheers, Tom

  • Outlook Email script won't work with Reader 9.1

    The attached form was designed in ES 8.2 and has worked fine with Reader 8.0. The "properties defaults" tab is set for Reader 9.0 or better. However, upon recent upgrade to Reader 9.1, the Outlook Email script stopped working. I'm new to Livecycle and scripts and was hoping that someone had an easy fix?

    okay thanks. One more question. What script is used to activate the "read receipt requested" function in Outlook?
    Date: Wed, 12 Aug 2009 12:23:13 -0600
    From: [email protected]
    To: [email protected]
    Subject: Outlook Email script won't work with Reader 9.1
    Interesting .....it sounds like an issue in Reader. From a code perspective everything is good .....the code tells Reader's email service to communicate with the mail client. This could be where the issue is.
    You may want to post your question on the Acrobat forum and see if they know of anything .....or you can report the issue to Support and have them look into it. Maybe something was introduced into the 9.1 version.
    From a Designer perspective all is good.
    Paul
    >

  • Compressing attachments in entourage email

    I am unable to compress attachments in my entourage email. I have Stuffit Expander installed, and I still can't compress pictures and video. Is there something else that needs to be done?? Please help
    Powerbook G4   Mac OS X (10.4.6)  

    In Mail for the iPad, there isn't a typical paperclip icon that most associate with attaching a file.
    On an iPad, you first need to find the file on the iPad. It could be a picture, a document, etc. When you find that file you will want to use the 'Send To' option. The icon is a little square box with an arrow jumping out and pointing to the right. After you select this, you will want to send it to 'Mail'. iPad will now create a new message with that file attached. Now, you are free to type in the reciepent, body of the message, and send it on it's way!
    Hope that helps.
    Take care,
    Daniel

  • Email script authentication protection

    DW CS3 - ACCESS - ASP VBSCRIPT
    I've been trying to get variations of email scripts to work. Since the SMTP server in IIS was discontinued in Vista, I cannot test locally.  The scripts will run locally using authentication, but then removing authentication and uploading results in 500 errors.  I found that my webhost requires authentication to run email scripts.  So my question is, how can these scripts be protected with authentication?  Is there a way to encrypt sensitive information?  Also, any opinion on a decent "forgot password" script for classic ASP?

    >Is there a way to encrypt sensitive information?
    I'm not sure I follow you. Any email credentials you enter in the script are executed on the server, not sent to the client.  The only way to get the credentials would be to hack your ftp account, but if they do that, they already have your credentials

  • AE Render & Email Script

    I've tried setting up my render & email script the same way as my Mail apps details are but it still failed as with so many others.. and I havent found any solutions.
    AE CS5
    Gmail
    Mac OS X
    1. How do I delete those settings in order to re attempt different settings?
    2. Has the mystery around which settings to use been solved?
    3. While we're here, is there a script to render, email, save and shutdown? I have seen people point to a script on aescripts.com but it seems to have been removed.
    Any help would be greatly appreciated!

    Click on "Run Script File" in the file menu under scripts.  Go to your Support folder, located in your AE Scripts folder, and run 'Change Email Settings'.   This works in CS6, I'm assuming it's the same in CS5.

  • Embedding word document into an Entourage email

    In MS Outlook when you hit 'Send as attachment' in a word document it cuts the document into the body of an email. In Entourage it simply attaches it as a separate document that then has to be manually opened.
    I'm in PR and need to make things as straightforward as possible for journalists - any ideas on how to get the body of a word document into an Entourage email??

    !http://i46.tinypic.com/2nvn6f.gif!
    Entourage is not an Apple product. You should go where the Entourage Mac users hang out:
    Entourage Help
    Entourage Forums
    Entourage Help/Support
    !http://i50.tinypic.com/izvwo1.gif!

  • How can I access old Entourage emails to import them into Mac Mail after upgrading to OS Lion?il

    How can I access old Entourage emails to import them into Mac Mail after upgrading to OS Lion? I don't really want to go back to Snow Leopard in order to access the old Microsoft Applications, but they simply aren't supported in Lion.

    In Mail you can select Import Mailboxes... from the File menu. There is an import from Entourage feature.

  • I created an email script in AppleScript, but it is not working.(Read below as well)

    I created an email script in AppleScript.
    Here is the code:
    set recipentNamePrompt to display dialog "What is the name of the recipient?" default answer "Cookie Monster"
    set recipientAddressPrompt to display dialog "What is the email of the recipient?" default answer "[email protected]"
    set subjectPrompt to display dialog "What is the subject of the email?" default answer "Change Cookie Recipe"
    set contentPrompt to display dialog "What would you like to put in your message?" default answer "Cookie Monster want MORE chocolate chips in cookies!"
    set recipientName to recipentNamePrompt
    set recipientAddress to recipientAddressPrompt
    set theSubject to subjectPrompt
    set theContent to contentPrompt
    --Mail Tell Block
    tell application "Mail"
      --Create the message
              set theMessage to make new outgoing message with properties {subject:theSubject, content:theContent, visible:true}
      --Set a recipient
              tell theMessage
      make new to recipient with properties {name:recipientName, address:recipientAddress}
      --Send the Message
      send
              end tell
    end tell
    But when I type in my info, the created message is written in Chinese. Someone please help me!

    The result of a display dialog is a record that contains the properties button returned, text returned (if default answer is used), and gave up (if giving up after is used).  Since you are passing the entire record to the Mail fields, it looks like it is getting interpreted as some Unicode text.  The solution is to get rid of your intermediate prompt variables and just get the desired property (the text returned), for example:
    set recipientName to text returned of (display dialog "What is the name of the recipient?" default answer "Cookie Monster")
    set recipientAddress to text returned of (display dialog "What is the email of the recipient?" default answer "[email protected]")
    set theSubject to text returned of (display dialog "What is the subject of the email?" default answer "Change Cookie Recipe")
    set theContent to text returned of (display dialog "What would you like to put in your message?" default answer "Cookie Monster want MORE chocolate chips in cookies!")

  • Is there a way to retrieve Entourage email after installing lion?

    Is there a way to retrieve Entourage email and files once I have installed Lion??

    Lets start with your definition of a Group. Thunderbird does not have groups. It has Address Books and Mailing Lists. Was this an address book or a mailing list that you created in one of your address books?
    If you deleted an address book I do not know of any way to recover it.
    If you deleted a mailing list from your address book all you did is delete the list. All the contacts that were on that list will still be in the address book. Just recreate the mailing list.

  • I loaded all of my Entourage emails into Mac Mail. Can I now upload them to mail service in iCloud?

    I loaded all my Entourage emails into Mac Mail. Can I now upload them to mail service in iCloud? MacBook Pro / Mountain Lion

    Remember that the move/copy is taking place over the internet so it will take a while. I would copy instead of moving just in case of a failure.

Maybe you are looking for