I have given up on this and used a simple blank mailto:
Code:
<a href="mailto:?subject=Mail from Our Site&body=This is the body%0AWords on a new line%0AMore words on a new line">Invite Friends</a>
You can add new lines to the body by adding a %0A wherever in the body string you want to put a hard return.
I also created a copy of the navbar code and placed it in the "ad_navbar_below" in the "Ad location templates" and added the mailto: there
The advantages of this method include:
- The code is unaffected by upgrades
- The email is sent by the users own email client on their home PC where they can select people from their address book.
- I also don't have to worry about SPAM coming from my server as the email is being sent from the user's home PC.
I really think the problem with this code is that it fails to work if you did a non default installation of vBulletin and specified a table prefix.