2025/10/02(木)秀丸メールのHTMLメールテンプレート設定

秀丸メールはとてもいいメーラーで20年以上使っています。
検索機能がとにかく最強なのと、どれだけメールが増加しても平気なので、OutlookやThunderbirdにはもう戻れません。

ただ、一般の人には若干とっつきにくいところもあるので、そのサポートです。
秀丸メールは、HTMLメールもアドインを使えば作成できますが、そのHTMLメールのテンプレートを少しイマドキのものにしたので公開します。

新規HTMLメールのテンプレート

$(HtmlEdit)$-
$(SetHeader,Content-Type,text/html,charset=utf-8)$-
<style>
html, body {
  margin: 0; padding: 0;
}
body {
  font-family: Aptos, -apple-system, "Segoe UI", Roboto,
               "Noto Sans JP", "Yu Gothic", "Meiryo",
               "Hiragino Kaku Gothic ProN", "MS Gothic", sans-serif;
  font-size: 11pt;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
  padding: 10pt 0 0 8pt;
}
p {
  margin: 0 0 0.8em 0;
}
pre, code, kbd, samp {
  font-family: "Cascadia Mono", Consolas, "Courier New", "MS Gothic", monospace;
  font-size: 10.5pt;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-all;
}
a { text-decoration: underline; }
img { max-width: 100%; height: auto; border: 0; }
hr { border: 0; border-top: 1px solid #ccc; height: 0; }
blockquote {
  margin: 0.6em 0; padding: 0.4em 0.8em; 
  border-left: 3px solid #ccc; color: #444;
}
</style>

<div>&nbsp;</div>

HTML返信用テンプレート

$(HtmlEdit)$-
$(SetHeader,Content-Type,text/html,charset=utf-8)$-
<style>
html, body {
  margin: 0; padding: 0;
}
body {
  font-family: Aptos, -apple-system, "Segoe UI", Roboto,
               "Noto Sans JP", "Yu Gothic", "Meiryo",
               "Hiragino Kaku Gothic ProN", "MS Gothic", sans-serif;
  font-size: 11pt;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
  padding: 10pt 0 0 8pt;
}
p {
  margin: 0 0 0.8em 0;
}
pre, code, kbd, samp {
  font-family: "Cascadia Mono", Consolas, "Courier New", "MS Gothic", monospace;
  font-size: 10.5pt;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-all;
}
a { text-decoration: underline; }
img { max-width: 100%; height: auto; border: 0; }
hr { border: 0; border-top: 1px solid #ccc; height: 0; }
blockquote {
  margin: 0.6em 0; padding: 0.4em 0.8em; 
  border-left: 3px solid #ccc; color: #444;
}
</style>

<div>&nbsp;</div>


<hr>

$(QuoteHtml,$(PlainTextToHtml,$(SmallRootHeader)) + $(RootHtml))

転送用テンプレート

$(HtmlEdit)$-
$(SetHeader,Content-Type,text/html,charset=utf-8)$-
<style>
html, body {
  margin: 0; padding: 0;
}
body {
  font-family: Aptos, -apple-system, "Segoe UI", Roboto,
               "Noto Sans JP", "Yu Gothic", "Meiryo",
               "Hiragino Kaku Gothic ProN", "MS Gothic", sans-serif;
  font-size: 11pt;
  line-height: 1.4;
  -webkit-text-size-adjust: 100%;
  padding: 10pt 0 0 8pt;
}
p {
  margin: 0 0 0.8em 0;
}
pre, code, kbd, samp {
  font-family: "Cascadia Mono", Consolas, "Courier New", "MS Gothic", monospace;
  font-size: 10.5pt;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-all;
}
a { text-decoration: underline; }
img { max-width: 100%; height: auto; border: 0; }
hr { border: 0; border-top: 1px solid #ccc; height: 0; }
blockquote {
  margin: 0.6em 0; padding: 0.4em 0.8em; 
  border-left: 3px solid #ccc; color: #444;
}
</style>

<div>&nbsp;</div>


<hr>
転送元のメール
<hr>
$(QuoteHtml,$(PlainTextToHtml,$(SmallRootHeader)+ "Date:     "+$(FormatDate,$(RootHeader,Date),"YYYY年MM月DD日(W) hh:mm:ss")) + "<br />" + $(RootHtml))$-