본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

How do I view the HTML code of an email I received?

  • 5 답장
  • 3 이 문제를 만남
  • 1 보기
  • 최종 답변자: Robertk1

more options

There must be a way to view the HTML code of an email, but I can't find it!

I need this to create a template for outgoing email in my CMS.

Help is appreciated!

There must be a way to view the HTML code of an email, but I can't find it! I need this to create a template for outgoing email in my CMS. Help is appreciated!

선택된 해결법

Well, that's the simple way, using what is already to hand. You can see everything, which is both good and bad. And usually you need only what is between <body> and </body> - that's not so hard to find is it?

Otherwise you need an HTML source viewer. There are two I know of.

One is built into the Stationery add-on: https://addons.mozilla.org/en-US/thunderbird/addon/stationery/

The other can be found here: https://freeshell.de/~kaosmos/edithtml-en.html

Both are designed to help you when composing an email message, not for dissecting one in your Inbox. So to use these, you'll need to select the message, select Edit As New Message and in the composition window use your chosen add-on to get at its source.

I find both a bit cramped compared with the ctrl+u source view.

I'd suggest that regardless of how you go about accessing the source, you should copy-and-paste it into a competent text editor, such as Notepad++, which understands xml/html and can do syntax highlighting and proper layout for you.

문맥에 따라 이 답변을 읽어주세요 👍 1

모든 댓글 (5)

more options

Select it, ctrl+u.

more options

What command do I use to VIEW the html code?

By using CTL+U I copy only what is displayed and this does not transfer well.

more options

I see the code, but this includes a lot of extra information. Is there a way to see only the code comprising the email itself or is the only solution to go through and edit the unwanted items out?

more options

선택된 해결법

Well, that's the simple way, using what is already to hand. You can see everything, which is both good and bad. And usually you need only what is between <body> and </body> - that's not so hard to find is it?

Otherwise you need an HTML source viewer. There are two I know of.

One is built into the Stationery add-on: https://addons.mozilla.org/en-US/thunderbird/addon/stationery/

The other can be found here: https://freeshell.de/~kaosmos/edithtml-en.html

Both are designed to help you when composing an email message, not for dissecting one in your Inbox. So to use these, you'll need to select the message, select Edit As New Message and in the composition window use your chosen add-on to get at its source.

I find both a bit cramped compared with the ctrl+u source view.

I'd suggest that regardless of how you go about accessing the source, you should copy-and-paste it into a competent text editor, such as Notepad++, which understands xml/html and can do syntax highlighting and proper layout for you.

글쓴이 Zenos 수정일시

more options

Excellent response .... this is exactly what I needed.

Thanks!