raI setting up a script to generate vcard files from info in a wordpress custom post. It seems to work, but the resulting file is not accepted as valid by 'Contacts' on mac.
This is the file content:
BEGIN:VCARD
VERSION:3.0
N:Hans H;Hansen
PREFIX:Mr
FN:Hans H. Hansen
ORG:Chemical Tankers
TITLE:Managing Director
PHOTO;VALUE=URL;TYPE=jpg:http://test.test.org/wp-content/uploads/sites/2/2013/04/jan_johansen.jpg
TEL;TYPE=WORK,VOICE:+47 55 55 55 55
TEL;TYPE=HOME,VOICE:
TEL;TYPE=CELL,VOICE:+47 99 99 99 99
ADR;TYPE=WORK:;;Weravg 5, Os;Stavanger;P.O.Box 1225, Os;Norway
LABEL;TYPE=WORK:Weravg 5, Os, Stavanger Stavanger\r\nNorway
EMAIL;TYPE=PREF,INTERNET:joar.hansen@sdomain.no
REV:20130408T195243Z\r\n
END:VCARD
I even want to include these two lines, but I am not sure about the "postal" type address, so I’ll try that after the rest is ok:
ADR;TYPE=POSTAL:;;Weraveg 5, Os;Stavanger;P.O.Box 1225, Os;Norway
LABEL;TYPE=WORK:Weraveg 5, Os, Stavanger Stavanger\r\nNorway
Where is my error?