<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takahashim</author_name>
  <author_url>https://blog.hatena.ne.jp/takahashim/</author_url>
  <blog_title>思っているよりもずっとずっと人生は短い。</blog_title>
  <blog_url>https://takahashim.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>メモ。一つ謎が解けたので。Rails3ではメールを扱うクラスがTMailからMailクラスに変わりました。そのせいか、素朴に日本語のメールを送る場合、文字コードはISO-2022-JPではなく、UTF-8になります。まあUTF-8になるのはいいとして、問題はこれがbase64なのでした。ううむ。この辺りはMail::Messageクラスの挙動になるっぽいのですが、メール送信時にContent-Transfer-Encodingヘッダを指定することはできます。 # UserMailerクラスのメソッドの中の定義 mail(:to =&gt; email, :content_transfer_encod…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakahashim.hatenadiary.org%2Fentry%2F20101201%2Fp1&quot; title=&quot; Rails3で送信するメールの本文をbase64ではなく8bitにする方法 - 思っているよりもずっとずっと人生は短い。&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-12-01 00:00:00</published>
  <title> Rails3で送信するメールの本文をbase64ではなく8bitにする方法</title>
  <type>rich</type>
  <url>https://takahashim.hatenadiary.org/entry/20101201/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
