<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yo-iida</author_name>
  <author_url>https://blog.hatena.ne.jp/yo-iida/</author_url>
  <blog_title>yo-log</blog_title>
  <blog_url>https://yo-iida.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby on Rails</anon>
  </categories>
  <description>railsのmultipartのメール配信で、ActionMailerのバージョンの差異で詰まったのでメモ。 multipartのメールを送る場合、parts_orderというパラメータでメール形式の優先度を指定することができます。 class ApplicationMailer &lt; ActionMailer::Base default parts_order: [&quot;text/plain&quot;, &quot;text/html&quot;] end こんなかんじで、parts_orderを指定します。 ぱっと見text/plainが一番優先されそうですが、RFCでは一番最後のものが優先される仕様になっています。 なの…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyo-iida.hatenablog.com%2Fentry%2F2015%2F12%2F16%2F011809&quot; title=&quot;ActionMailerのparts_orderのバージョンによる挙動の差異 - yo-log&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>2015-12-16 01:18:09</published>
  <title>ActionMailerのparts_orderのバージョンによる挙動の差異</title>
  <type>rich</type>
  <url>https://yo-iida.hatenablog.com/entry/2015/12/16/011809</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
