HTC Sync corrupting Email Addresses in Outlook 2010?
Hi, I have a HTC Desire (updated to Froyo) and have been syncing my contacts with my Outlook 2010 (running Windows 7 Enterprise - 32 bit). Everything seems to synchronize well but somehow the "email address - Display As" fields gets updated in outlook, which then doesnt allow me to send emails to those email addresses unless I manually go and update the display as field inside my outlook contacts.
I have manually updated all the contacts once already hoping that it may not be due to HTC Sync but when I did the sync then immediately all my Outlook email ids got updated.
Now everytime I try and send an email I immediately get Undeliverable receipt from System Administrator stating the following:
Your message did not reach some or all of the intended recipients.
Subject: test Sent: 14-Sep-2010 17:41
The following recipient(s) cannot be reached: abc@xyz.com on 14-Sep-2010 17:41
None of your e-mail accounts could send to this recipient.
Same problem here too. Also HTC Desire Froyo and Outlook 2007).
Same solution, (blank the 'display as' field, which subsequently defaults to Outlook's preferred display method automatically).
Additionally in the notes field of corrupted Outlook contacts, HTC Sync has added the following text:
<HTCData><Favorite>actionid:ViewContactCard</Favorite></HTCData>
1) Are there better sync clients between outlook and Froyo?
2) I'm irritated anyway that HTC Sync does not sync taks and notes. Any solution that does all of this, and does it without corruption?
The HTCData text in the notes field is not for corrupted contacts (for me), but those listed as favourites, or with other links like Facebook.
Still having issues with people I can't email. Blanking the 'display as' field did not help.
Also any company without a contact person seems to be displaying differently
Outlook no longer likes having non-standard values in "Display As".
My email was failing to send to a group of people that I often send to in bulk.
Once I returned all their "Display As" fields to the Outlook default, it started working again.
Dim CurFolder
Dim MyItems
Dim MyItem
Dim NumItems, i
' Use whichever folder is currently selected
Set CurFolder = Application.ActiveExplorer.CurrentFolder
' Make sure it's a contact folder
If CurFolder.DefaultItemType = 2 Then
MsgBox "This process may take some time. You will be " & _
"notified when complete.", , "Contact Tools Message"
Set MyItems = CurFolder.Items
NumItems = MyItems.Count
For i = 1 To NumItems
Set MyItem = MyItems.Item(i)
HTC Sync corrupting Email Addresses in Outlook 2010
Hi
HTC Sync changes SMTP to SMPT
I'm getting the same sorts of problems, although Notes are ok. For the random recipient addresses that mysteriously failed after sync, I discovered that the "Email Type" in Outlook Properties was set to "SMPT" instead of "SMTP" , causing an immediate transport failure. I reset them and they worked again. I noticed also that the File As and Display As fields got changed as described in the other posts.
I've noted the earlier post about Favourites being a factor (htcdesirePaul). This may explain why only certain contacts get corrupted. Will check.
Last edited by marshallrh; September 24th, 2010 at 04:54 AM.
Hi marshallrh,
I will check for this on my contacts too.
I modified a little my procedure, rewriting mail addresses, and now I've no more problems... I think that rewriting mail address outlook reset MailAddressType field.
Quote:
Sub UpdateMail()
Dim CurFolder
Dim MyItems
Dim MyItem
Dim NumItems, i
Dim sMail1, sMail2, sMail3
Dim sMailType1, sMailType2, sMailType3
' Use whichever folder is currently selected
Set CurFolder = Application.ActiveExplorer.CurrentFolder
' Make sure it's a contact folder
If CurFolder.DefaultItemType = 2 Then
If MsgBox("This process may take some time. You will be notified when complete.", vbOKCancel, "Contact Tools Message") = vbOK Then
Set MyItems = CurFolder.Items
NumItems = MyItems.Count
For i = 1 To NumItems
Set MyItem = MyItems.Item(i)
If Trim(sMail1) > "" Then
MyItem.Email1Address = sMail1
End If
If Trim(sMail2) > "" Then
MyItem.Email2Address = sMail2
End If
If Trim(sMail3) > "" Then
MyItem.Email3Address = sMail3
End If
MyItem.Save
End If
Next
End If
MsgBox "Finished updating contacts."
Else
MsgBox "The current folder must be a contacts folder."
End If
Set MyItem = Nothing
Set MyItems = Nothing
Set CurFolder = Nothing
End Sub
After this I made HTCSync many times but I've got no more errors...
HTH
The Following 2 Users Say Thank You to juxx For This Useful Post:
I have had non-stop problems with HTC sync. I have reinstalled and uninstalled the program at least 10 times and talked to HTC's tech support for hours. Their most recent solution was to install the European version of HTC sync 3.0. It works fairly well except now it is corrupting my ability to send emails from my computer to email addresses that worked previously. Why can't these guys get it right? It is frustrating to have a cutting edge phone that can't even do the basics like sync to your computer, sync tasks and notes, etc. I wish I had my blackberry back! This HTC EVO phone is a pain in the neck. Does anyone have a solution on how to fix their problem between HTC Sync 3.0 and Outlook 2007 running on Windows 7 64 bit? Thanks for your help.
I have had non-stop problems with HTC sync. I have reinstalled and uninstalled the program at least 10 times and talked to HTC's tech support for hours. Their most recent solution was to install the European version of HTC sync 3.0. It works fairly well except now it is corrupting my ability to send emails from my computer to email addresses that worked previously. Why can't these guys get it right? It is frustrating to have a cutting edge phone that can't even do the basics like sync to your computer, sync tasks and notes, etc. I wish I had my blackberry back! This HTC EVO phone is a pain in the neck. Does anyone have a solution on how to fix their problem between HTC Sync 3.0 and Outlook 2007 running on Windows 7 64 bit? Thanks for your help.
look at post #12...works like a champ...yeah, I know we shouldn't have to do this, but it works...
I have had non-stop problems with HTC sync. I have reinstalled and uninstalled the program at least 10 times and talked to HTC's tech support for hours. Their most recent solution was to install the European version of HTC sync 3.0. It works fairly well except now it is corrupting my ability to send emails from my computer to email addresses that worked previously. Why can't these guys get it right? It is frustrating to have a cutting edge phone that can't even do the basics like sync to your computer, sync tasks and notes, etc. I wish I had my blackberry back! This HTC EVO phone is a pain in the neck. Does anyone have a solution on how to fix their problem between HTC Sync 3.0 and Outlook 2007 running on Windows 7 64 bit? Thanks for your help.
Thanks Juxx.. Your Macro is a lifesaver... I really do hope the guys at HTC get their act together...
Quote:
Originally Posted by juxx
Hi marshallrh,
I will check for this on my contacts too.
I modified a little my procedure, rewriting mail addresses, and now I've no more problems... I think that rewriting mail address outlook reset MailAddressType field.
After this I made HTCSync many times but I've got no more errors...
I have a similar problem - HTC Desire - Windows XP Pro SP3 - Outlook 2007.
It doesn't effect all my contacts - The "display as" is not blank but, if I manually re-enter what's already there, it works - I have 1,476 contacts - this is not a viable way to proceed.
I'm not very tech-savvy - juxx - would that same macro work for Windows XP Pro SP3 32bit and Outlook 2007? Also, how do I implement that macro, juxx - what do I do? .
If it's a really long answer, is there any chance you could email me something to john @ green-shoot .com? (I don't know if this forum allows Email addresses).
With a company as large as HTC, you'd think they might check this sort of thing ...
I tried manually typing in the same info that was already there in the "Display As" fields and it worked on some contacts but not on others. So that's not the whole story.
Anyone know what it is about the "display as" fields that's the problem? ... and how to solve it?
I guess I'm on my own these days out here noone else is posting any more.
If you're reading this thread for the first time, I think the previous posting may be of use.
I just HAD to register to thank you guys for this! You guys rock! Thank you!
I had an issue with all my google-related contacts, and until reading this I didn't associate it with HTC Sync/Android!
Thanks for the Macros as well! They worked like a charm :-)
You guys are awesome!
Last edited by Ambious; October 9th, 2010 at 05:59 PM.
Reason: forgot to mention it worked!
I've been bashing my head against this one, and HTC, for some time. great script. Thanks. One problem remains:
When the contacts are viewed one row at a time after the script has been run the "File As" column displays "Forename Surname" even though the Contact details were originally "Surname, Forename" and still are set to this. Modifying the name and saving fixes this problem, and it is a problem as it screws up sorting by "Surname, Forename". Not viable to do this manually for 1000s contacts. Can the script be amended to tackle this?
The sync also removes all spacing details from phone numbers. this is very annoying but not in the same class of problem as that above.
hi bunker,
I don't know if I really understand your problem.
I use "file as" field as: Last name, first name (Company)
but my "display as" field is always: First Last (mail@ddre.ss)
maybe the original script, the one I used as model, can help you.
Look at post #9 in our tread... or directly OL2002: How to Change the File As Field for All Contacts
Thanks for the message. Here is the sequence that illustrates the problem.
1. Original contact has Full Name = FFFF SSSSSS and File As = SSSSSS, FFFFF.
2. When contact viewed as a single row in summary display, File As = SSSSSS, FFFF.
3. Home Phone = 012345 6789.
4. On phone Display Name is FFFF SSSSSS as this is how it was created by HTC Sync 3. All People have this format. Home Phone = 0123456789, as created by HTC Sync 3 (so HTC Sync 3 has removed the spaces).
5. Use contact on phone to make call.
6. HTC Sync 3.
7. Now Outlook Contact has changed. Email corruption as detailed here. Also Home Phone = 0123456789, this has been updated with the phone version even though this hasn't changed. In full Outlook Contact view, File As = SSSSSS, FFFF. However in single row summary display File As = FFFF SSSSSS. When name is modified in the Outlook Contact summary row File As reverts to SSSSSS, FFFF.
So when I view Outlook Contacts in summary view some contacts are in FFFF SSSSS format and others are in SSSSSS, FFFF format, so sorting is stuffed.
I have read that Froyo supports sort options under Contacts and I assume this allows SSSSSS, FFFF format but my Android 2.2 Orange HTC Desire doesn't have Contacts, just People, and this doesn't have any sort options.
So how to amend the script so that the File As isn't messed about? Also any ideas about the phone space problem?
Having spent an hour or so learning enough Outlook VBA via Getting Started with VBA in Outlook 2010 and this snippet Change Contact's File As format I've managed to add some crude changes to the Updatemail macro to rewrite the FileAs field in "Last Name, Firstname" format which is what it was before HTC Sync 3 did its worst. (Modified code below.) This does the trick for me.
The final gripe is with the phone fields. If I put a Home Phone = 012345 6789 in the Microsoft Contact and then use HTC Sync 3 to copy this to Android 2.2 the space in the phone number is not stored. Has this been removed by HTC Sync 3? On a subsequent sync the space in the Outlook Contact is overwritten. Annoying. I'm not sure what to do about this one. Any ideas?
Paul
Code:
Sub UpdateMail()
Dim CurFolder
Dim MyItems
Dim MyItem
Dim NumItems, i
Dim sMail1, sMail2, sMail3
Dim sMailType1, sMailType2, sMailType3
Dim sMailFileAs As String
' Use whichever folder is currently selected
Set CurFolder = Application.ActiveExplorer.CurrentFolder
' Make sure it's a contact folder
If CurFolder.DefaultItemType = 2 Then
If MsgBox("This process may take some time. You will be notified when complete.", vbOKCancel, "Contact Tools Message") = vbOK Then
Set MyItems = CurFolder.Items
NumItems = MyItems.Count
For i = 1 To NumItems
Set MyItem = MyItems.Item(i)
If TypeName(MyItem) = "ContactItem" Then
Debug.Print MyItem
sMail1 = ""
sMail2 = ""
sMail3 = ""
sMailType1 = ""
sMailType2 = ""
sMailType3 = ""
sMailFileAs = ""
sMail1 = MyItem.Email1Address
sMail2 = MyItem.Email2Address
sMail3 = MyItem.Email3Address
sMailFileAs = MyItem.LastNameAndFirstName
sMailType1 = MyItem.Email1AddressType
sMailType2 = MyItem.Email3AddressType
sMailType3 = MyItem.Email3AddressType
MyItem.Email1Address = ""
MyItem.Email1Address = ""
MyItem.Email1Address = ""
MyItem.Email1DisplayName = ""
MyItem.Email2DisplayName = ""
MyItem.Email3DisplayName = ""
MyItem.FileAs = sMailFileAs
MyItem.Save
If Trim(sMail1) > "" Then
MyItem.Email1Address = sMail1
End If
If Trim(sMail2) > "" Then
MyItem.Email2Address = sMail2
End If
If Trim(sMail3) > "" Then
MyItem.Email3Address = sMail3
End If
MyItem.Save
End If
Next
End If
MsgBox "Finished updating contacts."
Else
MsgBox "The current folder must be a contacts folder."
End If
Set MyItem = Nothing
Set MyItems = Nothing
Set CurFolder = Nothing
End Sub
It runs as an addin to Outlook and syncs all of your Outlook contacts with Google Contacts, and of course the Android handset can automatically sync that.
Since it all happens online (scheduled two-way sync within Outlook every hour, automatic sync whenever the handset is online), it provides an easier sync than HTC Sync itself.
You have to pay for this if you want it to work on more than a few contacts. Also it didn't recognise most of my email addresses, replacing them with First name, surname ().
After working out how to install the script and getting it to run, I've now decided to ditch HTC Sync and have installed MyPhone Explorer which is donateware and seems to sync contacts without causing corruption problems.
Magical - joined the forum just to say thanks. Have been going out of my brain trying to work out what was going wrong. Sorted in a few minutes. Awesome - thx.
Yet another reason I never wanted or have sync'd to Outlook with my old Palm Treo since they had a stand alone PIM since the being before anyone new what a smartphone was. I still use it however HTC and many other smartphone players are taking the cheap way out and supplying a conduit only. LG however does have a PIM for the Shine Plus, good work LG but HTC I guess is small potatoes to LG and can't invest in a PIM organizer for syncing to and backup or data entry then back to the phone.
I had synch working fine between my Legend and Outlook 2010 using the previous version of HTC. However since upgrading to the latest version thsi week, I have (a) started having the "None of your e-mail accounts could send to this recipient" issue from time to time and (b) new contacts and diary entries are not appearing in Outlook.
I would appreciate suggestions to fix both problems. It is drivin me nuts. I had been so pleased with the phone and the PDA capability and synching until this.
Bunker, Does this scipt also correct the Email Type from SMPT, which is the HTC error that causes the problem, to SMTP which is the setting used by Outlook?
I just registered to thank you.
I modified a little the great macro juxx published. In my case the problem was with SMPT instead SMTP in EmailXAddressType (HTC Desire - Outlook 2003). Only correcting this value everything works correctly.
If sMailType1 = "SMPT" Then
MyItem.Email1AddressType = "SMTP"
End If
If sMailType2 = "SMPT" Then
MyItem.Email2AddressType = "SMTP"
End If
If sMailType3 = "SMPT" Then
MyItem.Email3AddressType = "SMTP"
End If
Another question about this is why should Outlook behave so sentively. Why would it not accept that the 'Display As' field look in a certain way? The e-mail address is already there in a correct format.
Lars, quite simple really. Outlook identifies email addresses using SMTP as a one of the protocols. HTC Sync has a coding error where it posts data back to Outlook using SMPT (note the spelling mistake). So Outlook doesnt know what SMPT format is, hence displays the email 'Display As' with the email address only and you will get a delivery error as Outlook is trying to send in SMPT mode which doesnt exist.
Suggest you go to Outlook and in your contacts, set up a filter where Email Address Type = 'SMPT' and you will see a list of records HTC has corrupted.
I've experienced that problem recently, too. htc desire hd: with htc sync. Nothing helped, but to completely erase htc sync from my computer as whenever I uninstalled and or reinstalled either outloook 2010 and or htc sync, the same problem again occured due to htc sync's failure to produce "stmp instead of smtp". So I now use "my phone explorer" instead and everything is fine now. I'd like to add another question: Is there an app with which I might synchronize my outlook notes and tasks? I would appreciate a proposal what and where to get such app. There's one for the iPhone as I know, but how to get one for my htc.
I just registered to thank you and add a bit of info (another one... duh...).
' Crazy stunt to "reset" the FileAs correctly.
sMailFileAs = MyItem.FileAs
MyItem.FileAs = ""
MyItem.FileAs = sMailFileAs
One of the main "bug" left after merging together the pieces of VB-for-Outlook was the fact that NOT all my contacts were Last,First.
All my contacts without First or Last name, with only a Company name, would appear at the beginning of my Contact list (Address card View), with nothing on the title line.
When opening the Contact, the FileAs was still intact, but unused by Outlook!!! I then noticed that doing "Copy", "Delete", "Tab" (to change field), "Shift Tab" (back to FileAs), "Paste", "Alt<S>" manually on all my contacts solved that part. This, added to the code found on this thread to solve the other issues, saved my data in Outlook. I can now trash HTC Sync and give a shot to MyPhoneExplorer.
Thanks again people! Carmin.
(ps: if requested, I'll post the "complete" VB code and the way to execute it in Outlook but it seemed from reading this that it's not needed).
The HTC Desire is one of the latest high end phone by HTC bringing a huge 3.7" inch high quality AMOLED screen for crystal clear viewing, powered by a 1 GHz Qualcomm Snapdragon processor and runs on, you guessed it, Android.
We first heard a... Read More