Comments (5)
Hi. I edited the MailgunTransport class and figured that if you add the line
$this->_attachments['inline'] = $attachments;
after this line, it works.
The problem is that the attachment will be send twice, so it's not a good solution
from cakephp-mailgun.
Sending them twice is not a good idea. I will check what can be done for this.
from cakephp-mailgun.
Hey, @narendravaghela did you check this issue?
Soon i'll need to send inline attachments, so i'll try to fix this issue somehow.
The way i'm thinking to handle this is on:
if (!empty($attachments)) {
$this->_attachments['attachment'] = $attachments;
}
If $attachments' itens have the contentId
property, i can shift them from the $attachments into a new variable and then $this->_attachments['inline'] = $inlineAttachments;
or something like that.
What do you think?
from cakephp-mailgun.
Hi @alysson-azevedo
Didn't get time to check this plugin, sorry about that :)
I think the plugin needs to be updated in many ways as there is Cake 3.6 out now. I haven't used this plugin for a long time, so need to check for inline
attachments. But the proposed solution looks good to me for now.
Also, please generate PRs for the fixes that you have made in this plugin, so others can take benefits.
from cakephp-mailgun.
Ok, i'll look into that.
from cakephp-mailgun.
Related Issues (19)
- BCC HOT 3
- Issue when sending emails with attachments in 1.0.6 HOT 5
- Mailgun\Tests\Mock\Mailgun is not available on mailgun-php after version 2.1 HOT 2
- Mailgun EU Support is missing. HOT 3
- CakePHP 3.7 deprecations HOT 1
- Token HOT 4
- Class 'App\Controller\MailgunEmail' not found HOT 1
- Use MailgunEmail features in Mailers HOT 4
- cURL resolving timed out Mac Os Mojave HOT 9
- making use of the status codes when there are errors returned from Mailgun HOT 4
- Upgrade for CakePHP 4.x HOT 1
- plugin doesn't send attachments HOT 1
- Domain HOT 2
- Sending emails in a loop causing _formData to persist
- Unknown email configuration "mailgun". HOT 4
- i am facing this issue HOT 2
- Transport class "mailgun" not found. HOT 2
- Deprecated warnings in CakePHP 3.6 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 cakephp-mailgun.