Fetching address book from yahoomail,gmail,hotmail...

Hi ALL,
I am going to develop the java project which has some additional services.One of the service is to fetch the address book of Gmail,HotMail,YahooMail.For that i dont know how to start.Can anyone provide me an idea for doing this task.
If you provide sample code for fetching addres book of any one public services(yahoo,hotmail) is very helpfull to me.I am in very tough situation.Please give your solution as soon as possible.
Thanks,
Sourab

Can any one say me how to set proxy server settings, i need to pass ProxyHost,port,System username,password.
my code below, it is throwing above exception, Please any one help to rectify problem
package javaTest;
import java.util.Iterator;
import java.util.List;
import java.util.Properties;
import javax.mail.Session;
import com.xdatasystem.contactsimporter.Contact;
import com.xdatasystem.contactsimporter.ContactListImporter;
import com.xdatasystem.contactsimporter.ContactListImporterFactory;
public class test {     
     public static void main(String[] args) throws Exception {
          // TODO Auto-generated method stub          
          Properties systemSettings = System.getProperties();
          systemSettings.put("http.proxyHost", "10.9.32.3");
          systemSettings.put("http.proxyPort", "3128");
          System.setProperties(systemSettings);
          SMTPAuthenticator auth = new SMTPAuthenticator();
          auth.getPasswordAuthentication();     
          ContactListImporter importer=ContactListImporterFactory.guess("[email protected]", "urslovingly");
          List contacts=importer.getContactList();
          Iterator itr=contacts.iterator();
          while(itr.hasNext())
               Contact c=(Contact)itr.next();
          System.out.println("name: "+c.getName()+", email: "+c.getEmail());
import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;
public class SMTPAuthenticator extends Authenticator {
     public PasswordAuthentication getPasswordAuthentication() {
          String username = null;
          String password = null;
          try {
               username = "hari.prasad";
               password = "venkateswara";
          } catch (Exception e) {
               e.printStackTrace();
          return new PasswordAuthentication(username, password);
}

Similar Messages

  • How can I import my address book from aol and hotmail email to my iphone

    How can I import my address books from my aol and hotmail accounts to my Iphone4?

    First you must import them to your computer, and then sync your iPhone to your computer.
    http://www.juliakm.com/transferring-aol-address-book-apple039s-address-book
    http://email.about.com/od/windowslivehotmailtips/qt/Export_Contacts_Email_Addres ses_from_Windows_Live_Hotmail.htm

  • How can I move my address book from internet explorer to mozilla

    New at this and I need to know how to move my address book from internet explorer to mozilla. I moved my favorites list but cant find it!!!!!!!

    I don't think Internet Explorer has its own address book. Can you find your addresses by logging into your email website (e.g., Hotmail, Yahoo, Gmail) or starting up your email program (e.g., Outlook Express)?
    ''Edit: I was thinking you meant email addresses, but if you meant a different address book, then never mind.''

  • How do I migrate Address Book from my phone?

    I am using gmail on my android phone. How can I sync my address book from my phone to thunderbird?

    Thunderbird's Address Book can be synchronized with Google Contacts. Look for gContactSync and similar to add-on to Thunderbird.

  • I am having trouble trying to get my address book from my mac (just downloaded Lion for this purpose) to my 3G ipad. Set up an icloud account but still confused! Please help !

    I updated my mac with  os x Lion so that I could accomplish moving my address book from the mac to my new IPad 3G. I also set up an icloud account for this purpose, but I *still* cannot figure out how to move my address book from one computer to the other. When I'm on my mac and try to use bluetooth to export the address book, I'm able to find my ipad but I soon get a message that it does not support the necessary services. I have no idea what's going on and would appreciate any advice. tks in advance, Sarah

    blacksheepfibers wrote:
    I updated my mac with  os x Lion so that I could accomplish moving my address book from the mac to my new IPad 3G. I also set up an icloud account for this purpose, but I *still* cannot figure out how to move my address book from one computer to the other. When I'm on my mac and try to use bluetooth to export the address book, I'm able to find my ipad but I soon get a message that it does not support the necessary services. I have no idea what's going on and would appreciate any advice. tks in advance, Sarah
    The address book syncs via iCloud, not Bluetooth or iTunes.
    You upgraded to Lion so you could use iCoud.
    On the computer. go to Apple menu > System prefs > iCloud.
    Sign into your iCloud account.
    Tick everything.
    This enalbes the se items syncing to iCloud.
    On the iPad, Settings > Mail, Contacts, Calendars.
    Create a new iCloud account.
    Sign in with the same AppleID as your computer.
    Settings > iCloud and turn everything on.
    BAM!
    That is all you need to do.
    Your contacts (and all other checked items checked) will sync between computer and iPad.
    No need to use iTunes

  • Importing Address Book From An Older Version To Leopard

    I'm trying to import my address book from my old, G3 iMac running 10.1.5 to my new machine. All my address cards show the .vcf file extension, yet I can't import them. I get an error message that says, "No importable cards found". I tried switching from .vcf version 3.0 to 2.1 with no luck. I tried importing them as a text file, still doesn't work.
    Any ideas on how I can import my addresses?

    I was able to solve my problem with the help of a friend.
    I found the Old Address Book database file under OS 10.1.5:
    Users->myusername->Library->Addresses->Address Book.addressbook
    I pasted Address Book.addressbook to the new Address Book running under OS 10.5 in:
    Users->myusername->Application Support->AddressBook
    The computer did a little conversion dance and everything appeared just fine.
    Hope this helps others.

  • Importing Addresses in Address book from text file

    Hello all,
    I am attempting to import my address books from Microsoft Outlook into the Address book on the Macintosh.
    More specifically, I have several distribution lists under Outlook that I use to send out various newsletters from where I work. These distribution lists have addresses that are specifically NOT within my Contacts under Outlook.
    So far, I HAVE been able to get the 400 email addresses exported into a plain text file. This text file has only the email addresses, one per line within the text document.
    The problem I have been having is finding some way to make this information "useful" for the address book program. Attempting to import the text file doesn't work (understandably, since I assume the program will only see the text document as "one" card.)
    So my question is, how can I import these 400 addresses into the address book under a specific grouping or distribution list? Is there some way I can create individual vcards for EACH of these addresses, THEN import them?
    Or am I doing things all wrong from the get-go, and need to attempt something else?
    Here' hoping you can help!!
    Thanks

    Here's instructions. I find it hard to believe that this much work is required, but I'm not at home and so I can't experiment with my Mac.
    <http://www.macosxhints.com/article.php?story=20050828200319417&lsrc=osxh>
    I was thinking that you might just want to drag contacts from Outlook to a folder in Windows -- all the contacts get exported to individual "cards" which I'm pretty sure you can import directly into Address Book.
    As for your distribution lists -- I wouldn't be surprised if Mac OS requires everyone on the list to appear in Address Book. If you try creating a list manually, can you include recipients that don't go in Address Book?

  • How do i transfer my address book from one computer to another

    Old computer is XP new compiuter is 7. Mozilla Thunderbird is the email program. Both are installed on separate computers.

    On your old computer (XP), go to Thunderbird (TB)
    select Address Book
    highlight which address book you want (such as Personal Address Book)
    from menu bar select Tools then Export
    enter a name such as addresses.ldif Use LDIF rather than CSV format!
    select a destination folder such as Documents
    click Save
    copy the file (addresses.ldif) to your new computer via disk, memory card, or even email!
    put the file in your Documents folder on the new computer (Win7)
    On your new computer, go to TB
    select Address Book
    from menu bar select Tools then Import
    click Address Books then Next
    highlight Text File (LDIF, ...)
    click Next
    select the folder (Documents) and file (addresses.ldif) and click Open
    the addresses will be imported
    success! click Finish
    Notes:
    The address book you import will take on the name of the file without the .ldif extension (e.g. addresses). You can rename the file before you import it. Just keep the .ldif extension.
    If you want more than one word in the name, use an underscore instead of a space (e.g. Personal_Contacts). Don't use spaces! They really complicate things.

  • How do I copy an address book from one user account to another?

    How do I copy an address book from one user account to another?

    You haven't understood me. Follow these steps:
    1. Log in the user where are the files you want to transfer, and open a Finder window.
    2. In Finder, select Go menu (on the menu bar) > Go to Folder, and type /Users/Shared. Now you're on Shared folder, so leave that window.
    3. Open a new Finder window without closing the old one, go to the folder with the files you want to transfer, and copy them to Shared folder.
    4. After copying the files to Shared folder, go to  > Log Out, and log in the other user.
    5. Repeat the step 2, and you will get access to the transferred files. Now, you can open them directly from this folder, or you can copy them to a folder on your user folder

  • How do I transfer an address book from one computer to another?

    I'm trying to transfer an address book from my G4 to my Imac G5 and can't seem to figure out how to do it. I've tried exporting out of one, but the other doesn't read it. These computers are not connected so I'm transferring via cd.
    Thanks,
    Dick Skover

    Hi Dick
    If they are both running Tiger
    Use "Backup Address Book" in Address Book > File to make a copy then
    "Revert to Address Book Backup" on the iMac
    I use this for backing up both Address Book and iCal as a matter of course (it is the Apple recommended way in the Help files) I put them into a folder in my "Documents" and clear old copies once a month. If you use .Mac I would certainly recommend it seeing the problems with data loss some folks have had.
    chris

  • How on earth do I restore my old Address Book from Time Machine?

    Problem: I really, really need to retrieve someone's number. I know it'll be in an old version of my Address Book. I can see when I open time Machine that my address book is backed up, but no matter the date I go to, it says the Address Book was last modified in 2012! I know for a fact I've updated (and backed up) the Address Book many times since then.
    Whenever I try to restore the Address Book, I do Time Machine > Applications > Address Book > 'restore'. But whenever I do this, the mac refuses to open the restored Address Book because it's 'required by mac OS X'.
    I don't understand.
    Please, how on earth do I dredge my Address Book from the depths of Time Machine?
    Please help!
    M

    Look at Q15 here. http://pondini.org/TM/FAQ.html
    There are separate sections for iphoto and itunes.
    It has to be so complicated because Apple made TM to do too much and be too many things to too many people.. a horse designed by a committee. It has become flakey in later editions.
    If you still have the iMac you can move the files directly from the source.. you don't need to use TM backups at all.

  • Sync between MacBookPro and iPhone 3G does not sync properly.  Calendars duplicate events but worse is that only contacts from Address book from letter T onwards sync.  Any contacts on iPhone which are not on Mac are lost during sync.

    Sync between MacBookPro and iPhone 3G does not sync properly.  Calendars duplicate events but worse is that only contacts from Address book from letter T onwards sync.  Any contacts on iPhone which are not on Mac are lost during sync.
    Solutions?

    No, I never really found an easy solution.  I believe it is an issue with some corruption in the iTunes database on the specific device.  In my case, both my iPad and iPhone now show duplicate stream songs if viewed through iTunes on my Mac, but they show different songs.  A couple years ago I had a similar issue on my iPhone, and Apple support suggested I back up the phone, completely reset it, and then restore it from the backup.  It did work, so I imagine it would probably work for my current issues with the iPhone and iPad.  But resetting and restoring an iPad or iPhone always makes me a little nervous that something will get lost.  When I did reset/restore the iPhone, I do have to say, the restore process was 100% perfect and I did not lose any data at all even though Apple support said I might.  If you try to go that route, I would suggest backing the device up both to a computer through iTunes, and to the iCloud so that you have a double backup.
    None of this really resolves the issue with how the iTunes databases are becoming corrupted on the apple devices though, so it is very likely to happen again until they fix it.  I have been unable to determine if there were any specific actions or conditions which caused the corruption to happen in the first place.
    Might be worth another call to Apple support, or dropping in the local Apple store if you have one near by.

  • Question: about to purchase ipad air - how do I migrate contacts,bookmarks,and address books from either an iMac or old macbook?

    Question: about to purchase ipad air - how do I migrate contacts,bookmarks,and address books from either an iMac or old macbook?

    Set up iCloud on both devices
    How to set up iCloud on all your devices
    http://www.apple.com/icloud/setup/

  • HT1351 My fifth generation nano will no longer sync my address book from my Mac. It gives me an error message that "You have no contacts" and asks me if I want to create some.  My address book is full of contacts. Sync works for everything else.

    My 5th generation nano will no longer Sync my address book from my Mac.  It gives me a message that I have no "Contacts", and asks if I want to create some.  My address book is full of contacts, but for some reason it thinks it is empty.  All the other sync operations work fine including iCal.  My Mac is running OS X 10.7.4.

    It sounds like all of your contacts on your Mac running Lion are actually stored up in iCloud. 
    Several users running Mac OS X Lion and now ML (and iCloud) have no longer been able to "sync" contacts over to their older iPods models.
    A work around is to export all of your contacts out of Address Book as vCards and them copy these vCards into your iPod's Contacts folder.  You'll need to have the Enable Disk Use option ticked from under the iPod's Summary tab in order to browse out to the iPod's Contacts folder via the Finder.
    Using your iPod as a storage drive
    That's the only "solution" I have been able to use to get contacts to sync/appear on my 5G iPod Video.
    B-rock

  • Access Address Book from Menu Bar ?

    There used to be a few utilities that allowed access to the Address Book from the menu bar, but they haven't been updated for years.
    Anyone know of a good solution?

    Yeah, I thought that too, but reinstalling iAddressX did not help. The utility didn't work (and also did not create any new files in the Application Support/AddressBook folder).
    I don't think iAddressX was interfering with the Address Book, since I've been using them both under Leopard since day 1 of Leopard. My sync problems developed just a few days ago. I was just wondering if I deleted something that was needed for iAddressX to work (or worse, will cause me other problems down the road).

Maybe you are looking for

  • Song shows up in playlist on iTunes, but not on the iPod Touch

    So I bought a song from iTunes on my iPod Touch, and so it shows up on the "Purchased" playlist, and I can listen to it. So, I sync up to my PC (or my wife's MacBook Pro, doesn't matter) and using iTunes, I add the song to a playlist of my current fa

  • TA38571 I can STREAM, but I cannot SYNC (I don't have another library linked to my Apple TV)

    I can only STREAM, but I cannot SYNC Note: I do NOT have another itunes library linked to my Apple TV Thanks!

  • How to use a thread as daemon thread

    In multithreading i have undergone through daemon thread concepts and its mentioned as low priority thread which runs in the background of garbage collection. My query is how to make the thread daemon thread r we going to use thread priorities here.

  • Workflow to show package contents

    I have 190 'incremental backup packages' created by Apple's Backup software. I need to search within those packages for all files with a certain file extension, but it's a fairly laborious process to open each one: 1. Right-click each and 'show packa

  • Can't do a search

    I've tried searching the ITMS for the group "The Bravery" but get the error message: We could not complet your Music Store request. An unknown error occurred (5002). I don't get his error with any other searth but this one. Even if I just try Bravery