nextras / mail-panel Goto Github PK
View Code? Open in Web Editor NEWMail panel for Nette framework
Home Page: https://nextras.org/mail-panel
License: Other
Mail panel for Nette framework
Home Page: https://nextras.org/mail-panel
License: Other
See nette/tracy#165
Even if HTML tags are escaped by latte, in nextras mail panel you see proper layout, but in real mail client you see escaped HTML tags instead of HTML formatted layout.
When sending plain text mail ($mail->setBody('Some message')
) together with attachment then the shown text in mail panel is empty.
From small insight the Message class behave strange. After composing message the text is in the $message->body
, however in in mail panel they come with two items in $message->parts
and empty $message->body
.
Hi,
is there any change that mail-panel will implement something like this (https://github.com/captbaritone/codeception-mailcatcher-module#actions)?
It is very suitable in automatic tests.
By using the recommended configuration
services:
nette.mailer: Nextras\MailPanel\FileMailer(%tempDir%/mail-panel-mails)
The following code will fail
$container->removeService('nette.mailer');
$container->addService('nette.mailer', Mockery::mock(IMailer::class));
AFAIK the only possible solution is to change MailPanel
typehint from IPersistentMailer
to IMailer
and ignore the mailer when not instance of IPersistentMailer
. Also the configuration would need to be changed to
services:
nette.mailer:
class: Nette\Mail\IMailer
factory: Nextras\MailPanel\FileMailer(%tempDir%/mail-panel-mails)
Please abandon use of Nette\Object and switch to trait Nette\SmartObject.
Extension becomes incompatible with latest nette.
Sorry for not sending a PR, being at work right now ;-)
when i am trying to use this with nette 2.1 stable, actually it throws:
User Error
Exception in Nette\Templating\Template::__toString(): Call to undefined method Nette\Templating\FileTemplate::safeurl(). in /Users/rixite/Sites/tvfort/vendor/nette/nette/Nette/common/ObjectMixin.php:99
not sure if affected by this or something else
template usually contains reference on presenter object which can't be serialized
This is just note for myself.
Hi,
When I upgraded Nette from 3.1 to 4.0 (nette/mail v 4.0.0), Nextras panel 2.6.x-dev isn't working:
ErrorException: Property Nette\Mail\Message::$subject is deprecated, use Nette\Mail\Message::getSubject() method
Problem is with nette/mail v4.0.0 and nextras/mail-panel 2.6.x-dev.
When I'm using nette/mail 3.1.10 and nextras/mail-panel 2.6.x-dev, Nextras panel is working fine.
The first line of the documentation, the part "[...] captures sent e-mails in development mode [...]" is misleading. Mails are always captured, just not shown in production.
I don't mind leaving MailPanel out in config.local on a production machine. Merely from this documentation I wrongly assumed this would let mails pass normally in procution mode.
Thanks @JanTvrdik , great component!
i wanted to get this repo through composer but i couldn't because of this message:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for nette/nette v2.1.0-RC1 -> satisfiable by nette/nette[v2.1.0-RC1].
- nextras/mail-panel dev-master requires nette/nette 2.0.* | 2.1 -> satisfiable by nette/nette[v2.0.10, v2.0.11, v2.0.12, v2.0.13, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7, v2.0.8, v2.0.9], nette/nette-minified[v2.0.10, v2.0.11, v2.0.12, v2.0.13].
- Can only install one of: nette/nette[v2.1.0-RC1, v2.0.10].
- Can only install one of: nette/nette[v2.1.0-RC1, v2.0.11].
- Can only install one of: nette/nette[v2.1.0-RC1, v2.0.12].
- Can only install one of: nette/nette[v2.1.0-RC1, v2.0.13].
- Can only install one of: nette/nette[v2.1.0-RC1, v2.0.2].
- Can only install one of: nette/nette[v2.1.0-RC1, v2.0.3].
- Can only install one of: nette/nette[v2.1.0-RC1, v2.0.4].
- Can only install one of: nette/nette[v2.1.0-RC1, v2.0.5].
- Can only install one of: nette/nette[v2.1.0-RC1, v2.0.6].
- Can only install one of: nette/nette[v2.1.0-RC1, v2.0.7].
- Can only install one of: nette/nette[v2.1.0-RC1, v2.0.8].
- Can only install one of: nette/nette[v2.1.0-RC1, v2.0.9].
- don't install nette/nette-minified v2.0.10|don't install nette/nette v2.1.0-RC1
- don't install nette/nette-minified v2.0.11|don't install nette/nette v2.1.0-RC1
- don't install nette/nette-minified v2.0.12|don't install nette/nette v2.1.0-RC1
- don't install nette/nette-minified v2.0.13|don't install nette/nette v2.1.0-RC1
- Installation request for nextras/mail-panel dev-master -> satisfiable by nextras/mail-panel[dev-master].
my composer.json:
"require": {
"nette/nette": "v2.1.0-RC1",
"nextras/mail-panel": "dev-master"
I'm using this library with PHP 8 and it seems to work correctly.
Can you please replace Nette\Object by Nette\SmartObject ? This blocks us from upgrading to php 7.2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.