GROUP WITH MULTIPLE EMAIL MEMBERS

I have a group created whose members have multiple emails. I want to be able to type in the group name, and have ALL emails automatically inserted, not just one per group member.
HOW?

Okay... I spoke a little too soon.
It cuts off my emails at 50 when I have 77. I'll attach my Script. See what you can do.
property defaultGroups : {}
property defaultLabels : {}
-- Prompt for the group to use
tell application "Address Book" to set everyGroup to name of every group
if (count of everyGroup) is greater than 0 then
set theGroups to choose from list everyGroup with prompt ¬
"Send this message to which group?" default items defaultGroups with multiple selections allowed
end if
-- Prompt for message subject
set theResult to display dialog "What would you like the subject of the message to be?" default answer "I'm sending this via AppleScript!"
set theSubject to text returned of theResult
-- Prompt for whether an attachment is desired. If so, prompt for the location of the file.
set theResult to display dialog "Would you like to attach some files to this message?" buttons {"Yes", "No"} default button 1
set wantsAttachment to button returned of theResult
if wantsAttachment is equal to "Yes" then
set theAttachment to choose file
end if
-- Prompt for message body
set theResult to display dialog "What would you like to say in the body of the message?" default answer ""
set theBody to text returned of theResult
-- Go through each account and constuct a list of possible addresses
-- to use as a return address for this message.
tell application "Mail"
set listOfSenders to {}
set everyAccount to every account
repeat with eachAccount in everyAccount
set everyEmailAddress to email addresses of eachAccount
if (everyEmailAddress is not equal to missing value) then
repeat with eachEmailAddress in everyEmailAddress
set listOfSenders to listOfSenders & {(full name of eachAccount & " <"Which account would you like to send this message from?" without multiple selections allowed
if theResult is not equal to false then
set theSender to item 1 of theResult
tell application "Mail"
-- Properties can be specified in a record when creating the message or
-- afterwards by setting individual property values.
set newMessage to make new outgoing message with properties {subject:theSubject, content:theBody & return & return}
tell newMessage
-- Default is false. Determines whether the compose window will
-- show on the screen or whether it will happen in the background.
set visible to true
set sender to theSender
set theEmails to {}
tell application "Address Book"
repeat with aGroup in theGroups
repeat with aPerson in people of group aGroup
repeat with anEmail in emails of aPerson
if (label of anEmail is in defaultLabels) or defaultLabels is {} then
if theEmails does not contain the value of anEmail then
copy (value of anEmail) to end of theEmails
end if
end if
end repeat
end repeat
end repeat
end tell
repeat with anEmail in theEmails
make new to recipient at end of to recipients with properties {address:anEmail}
end repeat
tell content
if (wantsAttachment is equal to "Yes") then
-- Position must be specified for attachments
make new attachment with properties {file name:theAttachment} at after the last paragraph
end if
end tell
end tell
-- Bring the new compose window to the foreground, in all its glory
activate
end tell
end if

Similar Messages

  • Address book groups: can't customize contacts with multiple email

    I have many groups setup in address book and frequently like to use them. Additionally, several of my contacts assigned to groups have multiple email addresses. Is there a way to specifiy which email address of a contact's associates itself with the group? I have not been able to figure this out and am aggravated when I send out personal emails to my friends' work addresses, much to their chagrin.
    Thanks in advance for the help and ideas!
    -Brian

    chesternd08 wrote:
    Thanks Lanny, but that is related to an iCloud issue. My issue is not iCloud related at all, rather when I use a group on any platform.
    I am hoping there is someway to set a default email to a group for a contact having more than one email? I haven't seen any other forums discussing that issue, but if you are aware of one I would very much appreciate your help. Thanks!
    Then you would use the, "Edit Distribution List" from the Address Book's Edit menu. Select the applicable group and then select which email address that you want the group to use.

  • Mail Groups with Multiple Contact Email Addresses

    I cannot find a way to create a Group in Address Book where the contacts have more than one email address. In fact I have not been able to get emailing to groups with Mail to work at all. I always get prompted to select one of my other outgoing SMTP servers... none of them work, iCloud, Gmail, private domain. I don't understand why this is so difficult.
    I have read online that Groups do not support contacts with multiple email addresses... Really? Say it isn't so!

    User A can have one mailbox associated with his ID.  You can create other "User A" mailboxes with different names and e-mail addresses as shared mailboxes and grant User A full mailbox rights and send as right.  User A can
    then connect to each one of them separately.
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

  • Selectively Format Groups with Multiple Columns

    I have a bit of an obscure task I've been trying to hammer out to no avail.  I've searched quite a bit but can't seem to find anyone else who has attempted this.  I have two group by statements, one is a category and the other is a rank.  What I'm trying to do is organize the report so that there are category rows and below each category row is a set of columns for each rank with their associated values as such:
    category1
    rank1     rank2     rank3     rank4
    value1   value1    value1   value1
    value2   value2    value2   value2
    category2
    rank1     rank2     rank3
    value1   value1    value1
    value2   value2    value2
    I've tried using details>Section Expert>>Layout>Format Groups with multiple column.  Unfortunately, this applies to both groups putting the categories into columns instead of rows, making a mess.  Does anyone know of a way to selectively put groups into columns and ensure alignment?  In the above example the user would be able to compare rank values from multiple categories since they all line up.  Any help with this would be very much appreciated.

    Hi,
    Have you tried using a crosstab? Give this a shot:
    1) Group the report on Category
    2) Create a new group header section. Group Header b
    3) Place a crosstab in this section
    4) The columns would be the Rank field, I'm not sure about what you would like to show in the rows
    5) The summarized field would be the Value field ofcourse
    Let me know how this goes.
    -Abhilash

  • Want to just have phone numbers on phone can you have different groups with and email group as well

    Want to just have phone numbers on phone can you have different groups with and email group as well

    The iPhone remembers information about previous contacts.
    Complelely independently, you have a Contacts app with a contacts list.  It sounds like your contacts list has 3 names on it.  You need to add a few names.

  • ICloud with multiple family members sharing one iTunes account?

    How will iCloud work for the case where multiple family members share an iTunes account but each has his/her own iPhone/iPad/PC?
    Will iCloud replicate content based on email address, unique Apple ID, iTunes account, or??  If iTunes, we could have trouble as three of us share our iTunes account (started when our daughter was young and continued for simplicity).

    Keep one Apple ID for iTunes purchases (apps, music, etc.) for all family members on the iTunes Store and use different Apple IDs for each iCloud user. That worked for me.

  • SSL Multiple Tunnel Groups with Multiple group policies

    Hello folks.
    Have a query and cant seem to find an answer on the web.
    I have configured SSL Clientless VPN on a lab ASA5510, using 2 tunnel groups, one for enginneers and one for staff, mapped to 2 different group policies, each with different customisation. I have mapped the AD groups to the tunnel groups using both ACS and now LDAP (currently in use), both working successfully, using group lock and LDAP map of IETF-Radius-Class to Group name ensures engineers get assigned to the engineers tunnel group and staff get mapped to the staff tunnel group only.
    The question i have is....is there a way to use a single tunnel group to map the user based on AD group which will then use the correct Group-policy (1 tunnel group to multiple group-polciies). I have seen examples of doing this with different URLs but want to know if they can all use the same URL and avoid using the drop down list using aliases.
    It may be a simple "No" but it would be nice to know how to do it without using the URLs or drop down list. Users are easily confused ......

    Easy. Disable the drop-down list, and use the authentication-server (LDAP or Radius) in the DefaultWEBVPNGroup. By default when you browse to the ASA, it will be using the DefaultWEBVPNGroup. Let LDAP or Radius take care of the rest.
    You will get the functionality you are looking for.
    HTH
    PS. If this post was helpful, please rate it.

  • When I add a contact with multiple email addresses to an email, how do I get the email to send to both addresses?

    I want to send out an email to one of the groups in my address book, but when I add the group to my email only the first email address for each contact is added.  How would I make it so Mac always adds all of a contacts email addresses to the email.

    I look at it like this, it was a solution to my problem. There is obviously something wrong with the new version. When everyone starts complaining, and some genius figures out the fix, then I will worry about the upgrade. Until then, I am fine with running 4.0. I have to disagree with you though. 6.0 is a downgrade for sure. There is a lot to be desired compared to this version. Who wants price gong, and screwed up emails. Not me. The problem is out there, and now someone needs to work on the bug fixes on this BETA version.

  • Creating default with multiple email accounts

    I am a new user. I have an old iphone updated to 2.1. I have multiple email accounts and I want to set one as the default. Does anyone know how to do this? Thanks for your help. May your candidate win (as long as it begins with O)

    Go to Settings > Mail, Contacts, Calendars.
    Under the Mail section at Default Account, select the account that you want as the default.
    The following is provided underneath.
    +Messages created outside of Mail will be sent from the default account.+
    As an example, the default account will be used when selecting a photo to be emailed.
    If you have account A selected as your default account and select new message when accessing a mailbox for account B, account B will be the account the message is sent by.

  • Setting up one contact with multiple email addresses-i.e Family & Friends

    Would like to setup one contact " Family & Friends " and show multiple email addresses - such as 20 or 30 addresses - can this be done >??

    I the Ipad contact app does not handle groups. However, there are apps such as Mail2Group. They have both free (lite) and more fully featured version.

  • VIP selection will not work on contact with multiple email addresses

    Trying to add more people to my VIP list. When selecting a name that has multiple email addresses, I select the address I want added and selection will not "stick" or accept that contact to VIP list.
    Help?

    Hiya!
     Well first off... I'm baffled that you succeeded in setting up personal email without a data plan.
    You need a data plan to access the BIS network which allows you web browsing (off wifi), email, BBM and the like.
    1). Please thank those who help you by clicking the beside the 'Reply' button.
    2). If your issue has been solved, please resolve it by marking "Accept as Solution" on the correct post!
    3). Remember to have fun! We are all in this together!
    4). Follow me on

  • Submit button with multiple email addresses doesn't work while the same form with one email address does.  The multi email version works on windows computer.

    The email comes up when I press the "Submit" button but the email to field is blank.

    Hi,
    What is the separator character between two email addresses?  Is it a comma (,) semicolon(;) or something else?
    According to the mailto URI scheme (RFC 6068), you need to use a comma (,) to separate multiple email addresses.
    You can see the third example in the following Wikipedia page.
    mailto - Wikipedia, the free encyclopedia
    Would you double check the mailto value in your PDF form?

  • Creating new group with multiple contacts

    What is the simplest way to create a new group with say 8 or 10 names that have been cc'ed on an e-mail? Essentially, I would like to be able to add all of the names at once to my Address Book, then using this same list create a new group. I can't find a way of doing this other than one at a time, unless I'm missing something obvious. Thanks for any help.

    There is collection of AppleScripts called Mail Scripts you can download at this link.
    http://homepage.mac.com/aamann/Mail_Scripts.html
    The script to use from the collection of scripts is Add Addresses (Mail) which adds addresses found in the selected messages (in the header fields "From", "To", "Cc", and "Bcc") to the Address Book. This is much more flexible than the "Add Sender to Address Book" available in Mail and provides a convenient way for creating mailing lists.

  • How Can I Use a Gmail Account with Multiple Email Addresses in iPhone Mail?

    So I have a Gmail account with 4 POP accounts that it checks...  Is there a way to get "Reply From" from multiple addresses?
    I've tried the following sites...  No luck with iOS 5...
    http://email.about.com/od/iphonemailtips/qt/gmail_multiaddr.htm
    http://modernerd.com/post/535350679/solved-gmail-ipad-iphone-and-multiple-from

    By setting up your GMail account to forward emails to your iCloud email account address.
    You won't be able to reply from your Gmail address from within iCloud though.

  • Campaign output to BP with multiple email addresses

    Hi all,
    I noticed that within Campaign Execution the output to email channel will only send an output (mail form) to the business partners standard email address.
    Question is: how to send an output to ALL email addresses stored within a business partner and not just the one email marked as standard.
    Thanks,
    John

    Hello John,
    Don't know if it is possible but you can try making out the target group based on the email address as an attribute.
    I don't think that this is a good practice. The customers will not like to have an offer more than once. What if he is not interested. So, reading multiple mails for the same purpose wll frusturate him/her.

Maybe you are looking for