<p>Currently Sprout Forms does not support email attachments when using S3 assets.</p>

CC BY-SA 3.0
2016-03-08T03:24:15.947Z
2016-03-08T03:24:15.947Z
Zach Briggs
<p><a href="http://sprout.barrelstrengthdesign.com/craft-plugins/forms" rel="nofollow">Sprout Forms</a> v2.3.0 added support for S3 Asset uploads and file attachments.</p>

<p>--</p>

<p>OUTDATED: As of this post, Sprout Forms does not yet support email attachments using S3.</p>

<p>As a workaround, it is possible to override the <code>email.html</code> notification template using <a href="http://sprout.barrelstrengthdesign.com/craft-plugins/forms/docs/customization/template-overrides" rel="nofollow">Template Overrides</a> and link to or display S3 assets in the way you would provide a link to any asset:</p>

<pre><code>{{ asset.getUrl() }}
</code></pre>

CC BY-SA 3.0
2016-04-06T19:22:56.187Z
2016-05-26T23:44:01.643Z
2016-05-26T23:44:01.643Z
Ben Parizek
<p>I'm attempting to create email notifications with attachments when using Sprout Forms and S3 assets.</p>

<p>Given <code>Sprout Forms 2.1.5</code> &amp; <code>Craft Pro 2.5.2760</code></p>

<p>And a form with an Asset field</p>

<p>And default upload location in an S3 bucket
<a href="https://i.sstatic.net/kUvOM.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/kUvOM.png" alt="Default upload location in an S3 bucket"></a></p>

<p>And enable notifications set to true
<a href="https://i.sstatic.net/zXeH2.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/zXeH2.png" alt="Enable notifications set to true"></a></p>

<p>And enable file attachments set to true</p>

<p>When a user submits a form, no email is sent and the following error is logged in <code>sproutforms.log</code></p>

<p><code>Craft\S3AssetSourceType and its behaviors do not have a method or closure named "getBasePath".</code></p>

<p>Looking into the docs, <code>S3AssetSourceType</code> does NOT have a method named <code>getBasePath</code>, but <code>localAssetSourceType</code> does.</p>

<p>My question is, does sproutforms support notification emails with attachments when using S3?</p>

<plugin-sproutforms>
Email notifications with attachment when uploading files to s3
# Email notifications with attachment when uploading files to s3

(Asked by: username_0 on 2016-02-24)

I'm attempting to create email notifications with attachments when using Sprout Forms and S3 assets.

Given `Sprout Forms 2.1.5` & `Craft Pro 2.5.2760`

And a form with an Asset field

And default upload location in an S3 bucket
[![Default upload location in an S3 bucket](https://i.sstatic.net/kUvOM.png)](https://i.sstatic.net/kUvOM.png)

And enable notifications set to true
[![Enable notifications set to true](https://i.sstatic.net/zXeH2.png)](https://i.sstatic.net/zXeH2.png)

And enable file attachments set to true

When a user submits a form, no email is sent and the following error is logged in `sproutforms.log`

`Craft\S3AssetSourceType and its behaviors do not have a method or closure named "getBasePath".`

Looking into the docs, `S3AssetSourceType` does NOT have a method named `getBasePath`, but `localAssetSourceType` does.

My question is, does sproutforms support notification emails with attachments when using S3?

**Tags:** plugin-sproutforms


---

## 2 answers

### Answer by username_0 on 2016-03-08. Score: 0 | Accepted answer

Currently Sprout Forms does not support email attachments when using S3 assets.


---

### Answer by username_1 on 2016-04-06. Score: 1

Sprout Forms v2.3.0 added support for S3 Asset uploads and file attachments.
--
OUTDATED: As of this post, Sprout Forms does not yet support email attachments using S3.
As a workaround, it is possible to override the email.html notification template using Template Overrides and link to or display S3 assets in the way you would provide a link to any asset:
{{ asset.getUrl() }}


---

