<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>MoneyReport</author_name>
  <author_url>https://blog.hatena.ne.jp/MoneyReport/</author_url>
  <blog_title>Web言語のお勉強～ど素人が往く～</blog_title>
  <blog_url>https://weblanguagestudy.hatenablog.com/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>参考にしたサイト まずはこちらのサイト。 マルチパートなメールを解析する PEAR::Mail::mimeDecode をラップするクラス - お前の予定!! 日記 マルチパートまで対応しているようですが、とりあえずは単純テキストメールが受け取れればと。 参考にしつつ書いたのが下記。 &lt;?php // 件名を取得 $subject = mb_convert_encoding($structure-&gt;headers['subject'], &quot;UTF-8&quot;, &quot;jis&quot;); // 本文を取得 switch (strtolower($structure-&gt;ctype_primary)) { case…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fweblanguagestudy.hatenablog.com%2Fentry%2F2015%2F06%2F09%2F111727&quot; title=&quot;【PHP】メール本文を受け取り解析する - Web言語のお勉強～ど素人が往く～&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>http://ecx.images-amazon.com/images/I/51bOwVu7n+L.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-06-09 11:17:27</published>
  <title>【PHP】メール本文を受け取り解析する</title>
  <type>rich</type>
  <url>https://weblanguagestudy.hatenablog.com/entry/2015/06/09/111727</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
