Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have created vCards for the people in my business, and they are great for users on standard browsers; however, users browsing on a mobile device (notably iPhone) are unable to download and view my vCard.

Is there a service that I can direct them to that will allow them to receive an email containing my vCard, or is there a simple way I can set this up myself? I am running my site on WordPress, and initial attempts have failed spectacularly.

I'd like for them to be given the option to perform either action, but have the predominant action more prominently visible (probably via user agent detection). Something along the lines of:

It looks like you're on an iPhone! It's a bummer they can't download vCards, but if you enter your email address, we'll wrap one up and send it your way!

Don't worry, we won't send you junk email. Heck, we don't even save your email address!


enter-your@email.com


Think you've got it all figured out? Fine, download the vCard instead!

If you know of a service or simple-to-implement PHP library (or WordPress plug-in), please let me know! If not, let me know what the best solution to this problem is!

share|improve this question
    
possible duplicate of Contact details on a mobile site –  Su' Mar 3 '12 at 5:25
    
Can you build (and send) multipart/mixed e-mail with PHPMailer? –  Lazy Badger Mar 3 '12 at 8:51
    
Did you try the links in my answer where they useful? –  Anagio Mar 24 '12 at 5:53
    
I managed to cobble something together, and it's working fine for my purposes! You can see it in action here. –  Zachary Lewis Mar 25 '12 at 4:21
    
I remembered some of the libraries I used. I managed to cobble something together using the classes from PHPMailer, and it's working fine for my purposes! You can see it in action here. –  Zachary Lewis Mar 25 '12 at 4:28
show 1 more comment

2 Answers

you may want to try vCard Makers website to generate them, or take a look at this article about generating iPhone, Android and BB compatible vCards/Qrcodes

share|improve this answer
    
I already have a vCard created, I just need to get it mailed to folks. –  Zachary Lewis Mar 25 '12 at 4:29
    
Ok, here's another email library used in quite a few applications swiftmailer.org –  Anagio Mar 25 '12 at 4:51
add comment
up vote 0 down vote accepted

The most flexible solution I've found is PHPMailer.

A few things to note: You'll have to check with your webhost and determine if you can use sendmail from their server, or if you'll have to use an SMTP server elsewhere. That will be the biggest block from actually sending your email.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.