Am 30.06.2011 um 18:03 schrieb Arnaud Nicolet:

> Thanks for your example. So ICEmail isn't the email address of the user?

Sorry, my code was to find the email app.

> (I said I wanted the ICEmail field, but perhaps I was wrong. I'd like  
> to auto-fill a "from" field using the email address of the user).

Please lookup the email address of the user with the addressbook:

  // open addressbook
  dim a as new ABAddressBookMBS
  
  // get user
  dim p as ABPersonMBS = a.owner
  
  // lookup all emails
  dim m as ABMultiValueMBS = p.valueForProperty(a.kABEmailProperty)
  
  // pick primary one
  MsgBox m.valueForIdentifier(m.primaryIdentifier)

Greetings
Christian

-- 
Read our blog about news on our plugins:

http://www.mbsplugins.de/

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to