piernik
piernik

Reputation: 3657

Replying to other email

I'm building webmail with PhpMailer. I need advice about replaying to other email.

How to attach previous email? Should I simply attach it as a file - I think it's not good.

I prefer attach email text, but how? Using only blockquote? But what about previous mail's styles? I see in thunderbird blockquote with cite="mid:hash" attribute. What is it?

Maybe PhpMailer has some options regarding this?

Upvotes: 0

Views: 75

Answers (1)

Synchro
Synchro

Reputation: 37700

It's generally pretty straightforward. Read this about how to deal with the headers (use addCustomHeader to set them) so that mail clients can identify it as a reply.

There's no particular standard for what to do with the body, though it's common to copy all the lines of the original body into the new message, preceded by >, though you could wrap it in a blockquote in HTML, or some other formatting. It's up to you what you do with attachments.

Upvotes: 1

Related Questions