<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>stellaqua</author_name>
  <author_url>https://blog.hatena.ne.jp/stellaqua/</author_url>
  <blog_title>Stellaqua - ＴＯＭの技術日記</blog_title>
  <blog_url>https://stellaqua.hatenadiary.org/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>最近、他の方が作ったモノの紹介とかの記事が多かったので、たまにはコードを交えた記事を書いてみる。今回のネタは、メールに画像ファイルなどを添付して特定のメールアドレスに送ることで、サーバにファイルをアップロードする仕組みについてです。今回使った環境は、Postfix&amp;PHPですが、メールを受け取った時にスクリプトに渡す方法は、他のメールサーバでもあまり変わらないと思うので、流用はできるかと思います。まず、メールを受け取るアドレスを用意する為、Unixのユーザを一つ作ります。 # useradd -m hoge # passwd hoge # su - hoge $ maildirmake Mai…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fstellaqua.hatenadiary.org%2Fentry%2F20080123%2F1201089797&quot; title=&quot;メールにファイルを添付してサーバにアップロードするコード - Stellaqua - ＴＯＭの技術日記&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>2008-01-23 21:03:17</published>
  <title>メールにファイルを添付してサーバにアップロードするコード</title>
  <type>rich</type>
  <url>https://stellaqua.hatenadiary.org/entry/20080123/1201089797</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
