I use mailto to provide customers with quotes for a product. I am trying to automatically fill out a quote in the body of the email by building the mailto link as a string and combining the quotation data in the following code:
var quoteinfo = 'quote information here';
var link = '<a href="mailto:email?subject=subject&body=Please enter your contact information
and message here: %0A%0A%0AQuote:%0A' + quoteinfo + '">email</a>';
However, when using IE, clicking on the link creates an email message, but only text that is explicitly added appears - nothing is stored in the quotinfo variable. I confirmed that the final link contains all the information about the quote - it simply does not appear in the letter. Since the letter was successfully generated with part of its text, I do not think that this is a problem of character overflow (and in any case, this happens even with 30 characters in the quotinfo variable.
Perhaps this is a problem specific to the mail client?
One last note: I know well that there is a popular movement for replacing mailto forms - for other reasons, I canβt do this, so please refrain from answering by suggesting that you proceed to the form.
A specific example of how my links will appear is as follows:
mailto:sales@optecinc.com?subject=Submission From Quote Creator &body=Please enter
your contact information and message here: %0A%0A%0AQuote:%0A
$829.00%0A
source
share