Comments (6)
What does your email config look like (please
redact sensitive information).
Also can you provide an example form or scenario that exhibits this issue so I can try to recreate it. ?
from grav-plugin-email.
Thank you.
Also can you provide an example form or scenario that exhibits this issue so I can try to recreate it. ?
There is no form exhibiting this behaviour. Mail is generated from a contact form successfully. Pretty textbook setup.
The error is only present in Grav logs and some CLI commands, at least cache-clear
and I think other(s).
Configs
Site A
email.yaml
:
from: [email protected]
from_name: A website
to: [email protected]
to_name: Website A
reply_to: [email protected]
reply_to_name: Website email alt
mailer:
engine: mailjet
content_type: text/html
debug: true # it's a dev install
email-mailjet.yaml
:
enabled: true
transport: api
api_key: API_KEY_REDACTED
secret_key: SECRET_KEY_REDACTED
Site B
email.yaml
:
from: [email protected]
from_name: "B website"
to: [email protected]
to_name: Website Owner
mailer:
engine: sendinblue
content_type: text/html
debug: false # is an unlaunched prod site
email-sendinblue.yaml
:
enabled: true
transport: api
access_key: ACCESS_KEY_REDACTED
Let me know if I can provide anything else.
from grav-plugin-email.
I can't recreate this with your maijet or sendinblue configruation. Can you look in your grav.log and see if there's more detail on where the error is happening?
Thanks.
from grav-plugin-email.
Thanks for trying to reproduce. Damn tho :/
bin/grav logviewer
is one of the commands that work. I can't see anything in the logs. These are my logging settings just in case there's something I can set to log more: log.handler=file
, errors.log=true
.
I decided to test the other CLI commands bringing up this error, except server
, new-project
, sandbox
. The only ones that brought up this error were page-system-validator
, scheduler
, and security
.
I tested other CLI commands. bin/gpm
and bin/plugin
work fine except for bin/plugin email test-email ...
- worked with the local environment flag
--env
where I have mailtrap setup with SMTP - failed for the default/prod settings (Mailjet API), with that same error in the issue title
- switched the default config to Mailjet with SMTP, the error did not happen. I got "Problem sending email..." in the debug output but I think that is just a DKIM thing because it was runnign locally. It did seem to bypass the "user not set" error.
Hope that helps. Looks like I will be able to work around this problem easily by reverting to SMTP settings.
Just a wild idea: could this be related to having environment overrides? I use those too. My experience is that these env configs are merged opaquely by Grav by the time any plugin goes to use them.
The other mystery is why only some of my installs experience this. I can look harder for patterns there if need be.
from grav-plugin-email.
My pleasure to contribute.
from grav-plugin-email.
if you want to PM your account creds on discord, I can test again. but I don't have an active account with them anymore.
from grav-plugin-email.
Related Issues (20)
- PHP 8.1 support - update `swiftmailer`
- `swiftmailer/swiftmailer` is EOL HOT 5
- Message not sent if no user defined HOT 1
- Mailing through mailjet API fails silently when quota is exceeded HOT 2
- Verification of To and From email in the plugins's settings HOT 1
- Can't change/save SMTP configuration HOT 11
- mb_strpos() expects parameter 1 to be string, array given with test version v4.0.0-rc.3 HOT 4
- Change of Signature on email
- doesnt work HOT 2
- Undefined array key "bcc_name" HOT 4
- File Attachments in Version 4.0 onward HOT 3
- Issues with multiple recipients in recent versions (since 4.0 I believe) HOT 1
- Spam issue when modifiying from HOT 3
- Server Error after update HOT 3
- Problem with sending email (encryption: none) HOT 1
- Call to undefined method Grav\Plugin\Email\Message::setCc() HOT 2
- Email sent to default "From" ignores default "to" HOT 2
- Email does not comply with addr-spec of RFC 2822 HOT 12
- Default Plugin yaml issue HOT 2
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 grav-plugin-email.