Avatar of Starquest321
Starquest321
 asked on

Contact Sync - mysql to Outlook

I would like to write a little scipt that would allow a "sync" of the contacts from a mysql datbase to Outlook. Is that possible?
PHPMySQL ServerAJAX

Avatar of undefined
Last Comment
Starquest321

8/22/2022 - Mon
striker46

You could write a script which retrieves values from the database and writes them to a text file. You can import into Outlook CSV files, namely text files with the data separated with ;
Rename the text file generated by your script to .CSV instead of .TXT and import.

I recommend you export some sample contacts with the desired fields to a test file in your computer, then you open it with notepad or any other text editor to see how Outlook formats the values and separates them with ;. Then you'll see how you must make the script write the files...

Regards
ASKER CERTIFIED SOLUTION
striker46

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Starquest321

ASKER
But the question: Can I do it directly to Outlook?
striker46

Automatically/directly, not this way. You still need to manually import the contacts stored in the CSV file to Outlook manually, from Outlook itself.

If there are other ways to do that (automatically or not), I ignore it.

Regards
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Starquest321

ASKER
So what's the automatic way?