automatically add incoming email address to contacts address book in outlook

Hello,
is it possible to automatically add incoming email address to contacts address book in outlook?
JParra72Asked:
Who is Participating?
 
David LeeConnect With a Mentor Commented:
Hi, JParraa72.

It is possible to add email addresses of every incoming email to contacts with a script liek the one below int he snippet.  Follow these instructions to use this script.

1.  Start Outlook
2.  Click Tools > Macro > Visual Basic Editor
3.  If not already expanded, expand Microsoft Office Outlook Objects and click on Module1
4.  Copy the code from the Code Snippet box and paste it into the right-hand pane of Outlook's VB Editor window
5.  Edit the code as needed.  I included comments wherever something needs to or can change
6.  Click the diskette icon on the toolbar to save the changes
7.  Close the VB Editor
8.  Create a rule that fires for all messages (i.e. a rule with no condition)
9.  Set the rule's action to "run a script" and select this script as the one to run
Sub AutoAddContact(Item As MailItem)
    Dim olkContacts As MAPIFolder, _
        olkContact As ContactItem, _
        olkReply As MailItem, _
        olkRecip As Recipient, _
        strAddress As String
    Set olkContacts = Outlook.Application.Session.GetDefaultFolder(olFolderContacts)
    Set olkContact = olkContacts.Items.Find("[FullName] = '" & Item.SenderName & "'")
    If TypeName(olkContact) = "Nothing" Then
        Set olkContact = Outlook.Application.CreateItem(olContactItem)
        Set olkReply = Item.Reply
        Set olkRecip = olkReply.Recipients.Item(1)
        If Err = 0 Then
            strAddress = olkRecip.Address
            If strAddress = "" Then
                strAddress = olkRecip.Name
            End If
        End If
        With olkContact
            .Email1Address = strAddress
            .FullName = Item.SenderName
            'Feel free to remove the next line'
            .Body = "Record created automatically on " & Date & " at " & Time & " by BlueDevilFan's script."
            .Save
        End With
    End If
    Set olkContact = Nothing
    Set olkContacts = Nothing
    Set olkReply = Nothing
    Set olkRecip = Nothing
End Sub

Open in new window

0
 
ashwynrCommented:
* It is not possible to automatically add email address of every incoming email into your OAB, at least not with some settings in Outlook.
* You will have to add the new contacts manually.
* To add a person who sends you e-mail to your Personal Address Book, complete the following steps:
   1. Open the message that was sent to you.
   2. Highlight the person's name on the From line.
   3. Right click on the highlighted name.
   4. Choose Add to Personal Address Book.
However if you want it to be done automatically then you'd need to spend a bit in buying this add-in

http://www.office-outlook.com/outlook-addins/add-email-address.html

Hope this helps

#wyn
0
 
97WideGlideCommented:
u can add addresses to which you reply.

Here's a link describing it and also some add ons which might do what u want .

http://www.slipstick.com/contacts/addauto.asp
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
97WideGlideCommented:
Just clicking on some of those links and this one sounds like it will do just what you want and more.

http://support.microsoft.com/?kbid=198725
0
 
JParra72Author Commented:
Thaks!!!
0
 
David LeeCommented:
You're welcome.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.