0

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!


[email protected]


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!

6
  • possible duplicate of Contact details on a mobile site
    – Su'
    Commented Mar 3, 2012 at 5:25
  • Can you build (and send) multipart/mixed e-mail with PHPMailer? Commented Mar 3, 2012 at 8:51
  • Did you try the links in my answer where they useful?
    – Anagio
    Commented Mar 24, 2012 at 5:53
  • I managed to cobble something together, and it's working fine for my purposes! You can see it in action here. Commented Mar 25, 2012 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. Commented Mar 25, 2012 at 4:28

2 Answers 2

0

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

2
  • I already have a vCard created, I just need to get it mailed to folks. Commented Mar 25, 2012 at 4:29
  • Ok, here's another email library used in quite a few applications swiftmailer.org
    – Anagio
    Commented Mar 25, 2012 at 4:51
0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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