<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Attaching uploaded file to email in portlet</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112184800" />
  <subtitle>Attaching uploaded file to email in portlet</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112184800</id>
  <updated>2026-04-04T19:09:50Z</updated>
  <dc:date>2026-04-04T19:09:50Z</dc:date>
  <entry>
    <title>RE: Attaching uploaded file to email in portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112192397" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112192397</id>
    <updated>2019-01-31T10:35:58Z</updated>
    <published>2019-01-31T10:35:58Z</published>
    <summary type="html">&lt;blockquote&gt;John Cressman&lt;br /&gt;Can that be done?  If so, can someone point me to any example code?&lt;br /&gt;&lt;/blockquote&gt;No pun intended, just a great opportunity to link &lt;a href="http://lmgtfy.com/?q=liferay+portlet+file+upload"&gt;this great repository&lt;/a&gt; of knowledge ;)</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2019-01-31T10:35:58Z</dc:date>
  </entry>
  <entry>
    <title>RE: Attaching uploaded file to email in portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112189599" />
    <author>
      <name>Ketan Savaliya</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112189599</id>
    <updated>2019-01-31T08:59:07Z</updated>
    <published>2019-01-31T08:59:07Z</published>
    <summary type="html">Hi &lt;span style="color: inherit"&gt;&lt;span style="font-family: inherit"&gt;&lt;span style="font-size: 14px;"&gt;John&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: inherit"&gt;&lt;span style="font-family: inherit"&gt;&lt;span style="font-size: 14px;"&gt;,&lt;br /&gt;&lt;br /&gt;Yes, you can do it by creating just temp file from request. &lt;br /&gt;Then just attached that temp file into mail. That&amp;#39;s it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thank you!!&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;</summary>
    <dc:creator>Ketan Savaliya</dc:creator>
    <dc:date>2019-01-31T08:59:07Z</dc:date>
  </entry>
  <entry>
    <title>Attaching uploaded file to email in portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112184799" />
    <author>
      <name>John Cressman</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112184799</id>
    <updated>2019-01-30T17:41:33Z</updated>
    <published>2019-01-30T17:41:33Z</published>
    <summary type="html">I am working on another portlet is basically a form with 20 or so fields.  One of them is a file upload field.  I know how to access the form fields on the backend and generate a body with those values BUT, I&amp;#39;m unsure how to attach the file.  &lt;br /&gt;&lt;br /&gt;Optimally, I want to attach the uploaded file directly, without saving it but I&amp;#39;m unsure how to do that.&lt;br /&gt;&lt;br /&gt;Can that be done?  If so, can someone point me to any example code?&lt;br /&gt;&lt;br /&gt;​​​​​​​Thank you!</summary>
    <dc:creator>John Cressman</dc:creator>
    <dc:date>2019-01-30T17:41:33Z</dc:date>
  </entry>
</feed>
