Discussion Forums  >  Uncategorized

Replies: 1    Views: 173

claudio
buzztouch Evangelist
Profile
Posts: 51
Reg: Jun 10, 2011
Chiang Mai, Tha...
510
01/13/12 11:53 PM (14 years ago)

Email us - send emails to more than one address (carbon copy)

Hi everyone, simple question, but that I couldn't solve by myself.. checked in the forum but couldn't find anything. how can I add more than one email address in the email us screen? I would need to use the CC field.. on BT control panel, if I write more than one address separated by a comma, it doesn't work in the simulator (got the all field simply blank, while everything works fine if I write only one address).. I guess I need to do some coding.. someone can help me? using 1.5 for ios, xcode 4 thank you
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
01/14/12 12:41 AM (14 years ago)
This is the reference I found in the iOS Developer Library: ============================================== setCcRecipients: Sets the initial recipients to include in the email’s “Cc” field. - (void)setCcRecipients:(NSArray*)ccRecipients Parameters ccRecipients An array of NSString objects, each of which contains the email address of a single recipient. Discussion This method replaces the previous carbon-copy recipients with the new ones listed in the ccRecipients parameter. This method does not filter out duplicate email addresses, so if duplicates are present, multiple copies of the email message may be sent to the same address. You should call this method before you display the mail composition interface only. Do not call it after presenting the interface to the user. Availability ============================================== I haven't looked at the actual files in xcode, but I'm assuming you probably need to find the - (void)setToRecipients:(NSArray*)toRecipients section and implement the cc code in a similar fashion.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.