Comments (7)
I wasn't able to find any specification in the documentation on how to do this. In case anyone was looking to do this, it appears you can just pass an array of attachments with the appropriate name fields to get named attachments:
$attachments[] = [
'remoteName' => 'nameofthefile.ext',
'filePath' => '/path/to/the/file'
];
from mailgun-php.
This feature should be documented
from mailgun-php.
+1
from mailgun-php.
We plan on offering this in the next point release. Estimate: 1 week.
from mailgun-php.
Implemented in 1.6 release.
from mailgun-php.
Thank you @devnix. I've created an issue for that. If you want, you are free to create a PR for this.
from mailgun-php.
I wasn't able to find any specification in the documentation on how to do this. In case anyone was looking to do this, it appears you can just pass an array of attachments with the appropriate name fields to get named attachments:
$attachments[] = [ 'remoteName' => 'nameofthefile.ext', 'filePath' => '/path/to/the/file' ];
It's filename, instead of remoteName in sdk version 3.x
from mailgun-php.
Related Issues (20)
- request for event microtime HOT 1
- Fatal error: Uncaught TypeError: Mailgun\Api\Domain::index() HOT 2
- Improvement: SDK version headers v2 vs v3 HOT 1
- Oudated symfony/http version HOT 3
- Bounces: The endpoint you have tried to access does not exist. HOT 2
- PHPDoc Type issue in Mailgun\Api\MailingList\Member HOT 2
- Get all lists
- TypeError: Mailgun\Api\Suppression\Bounce::show() HOT 1
- Bug: Proper json_last_error() handling with try catch
- Errors after latest update regarding json syntax HOT 2
- Error (4) when trying to json_decode response HOT 1
- Suppressions -> Bounces: cannot show for a specific address HOT 5
- Clarify effects of using php-http/discovery
- Returned data with send? HOT 1
- BCC not working properly when batch sending HOT 10
- Endpoint not correct for Tag > stats() HOT 1
- How to mock Mailgun?
- Get message from EU server?
- Feature Request: Add dkim_host_name and dkim_selector options to domains()->create() method HOT 2
- The template search filters do not match the documentation. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mailgun-php.