This was also posted on Toyotanation:
I recently converted a JDM RHD 5 pin ae101 auto retract door mirrors for my LHD 7th gen and this is what I came up with:
7 pin mirror: http://s198.photobucket.com/user/redwing0001/library/DIY%20AE101%207%20pin%20auto%20retract%20side%20mirror%20project?sort=3&page=1
5 pin mirror: http://s198.photobucket.com/user/redwing0001/library/DIY%20ae101%205%20pin%20auto%20retract%20side%20mirror%20project?sort=3&page=1
There are basically 2 types of corolla auto retract door mirrors that you can use, one has a 7 pin connector and one has a 5 pin connector but as far as I have seen, both can be used if it came from a sedan (meaning, 4 door, not 2 door).
the 7 pin mirror needs a mirror relay because it has an extend and retract limiter wired up, while the 5 pin has those same limiters built in to the mirror motor and is not needed.... the 5 pin only has 2 pins for the extend and retract function and this is what I used.... much simpler to do than the 7 pin and no more mirror relay BUT you will need to have a tacoma/rav4 mirror switch with the push on/push off retract switch function to be able to retract/extend the mirrors and wiring it is different to the ae101/ae111 push button switch....
The part number for the rav4 mirror switch is also listed in the 5 pin link.
Also notice I used 1/4 inch rubber matting glued together and cut at an angle to get the correct angle for LHD and used longer bolts to hold it in... I ended up gluing together 6 of these rubber pads together then cut it at an angle.... the good thing about cutting a rubber block at an angle is that you automatically make 2, one for the left side, and one for the right side.