0

Possible Duplicate:
mailto link for large bodies

I'm making a basic CRM system.

The user can save/edit his email signature by using a rich text editor - which is then saved into a mysql table.

Then when the user clicks on customers email, using mailto it opens an email to that customer.

Is there a way to then have his saved signature in that email?

I know about the &body= thing but that can only handle 256 characters and lines and spaces have to be coded in.

I was wondering if there's a way to do it with javascript?

Community
  • 1
  • 1
Lan
  • 1,874
  • 2
  • 20
  • 37
  • 2
    This does not really have anything to do with Javascript just so you know. – thatidiotguy Nov 13 '12 at 21:43
  • oh, would the solution (if there is one) not involve javascript? – Lan Nov 13 '12 at 21:45
  • 1
    Well since he asked if he could use JS to accomplish this, then I'd say the JavaScript tag is fair – Kevin Boucher Nov 13 '12 at 21:45
  • No, JS can only create the same elements and `href`-attributes as serverside-created html tags. – Bergi Nov 13 '12 at 21:45
  • @KevinBoucher I am not trying to rag on him for including it, I totally understand where he is coming from. It's just that the question is not really about Javascript, it is about the anchor tag with `mailto`. – thatidiotguy Nov 13 '12 at 21:46
  • When the page is rendered out, can you use something like php (or whatever your using) to populate the &body= based on that users token? Seems like it would be easier then using JS – AJak Nov 13 '12 at 21:47

1 Answers1

2

Short answer: No. Javascript can not change the way external programs interpret link protocols.

Javascript can however populate the link destination with dynamic content, but it can’t get around the usual browser limits that follows.

David Hellsing
  • 106,495
  • 44
  • 176
  • 212