What is the best way to send the original email message quoted in a response?

527 views Asked by At

Should I prepend all lines with '> '? Is that sufficient? Will it be accepted and understood by all major email clients? In this case will a original.replace(/\n/g, '\n> ') regex replacement do what I want with the message?

What about the HTML version of the email? Use a big <blockquote>? Just prepending a <blockquote> and appending a </blockquote> will suffice?

Should I, like Gmail and others, prepend a line saying something like "someone <[email protected]> wrote at some time:"?

1

There are 1 answers

4
API_sheriff_orlie On BEST ANSWER

Plain text and by that I mean: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable just requires ">" to quote the previous message (1 per line).

HTML version - depends on the client you're rendering in.