Comments (5)
It looks like Kirby has Postmark support built-in, so you don’t have to change anything for Uniform. You only have to make the settings in the Kirby configuration so that your emails get sent via Postmark and not via the php mail() function.
Have a look at http://getkirby.com/blog/email-plugin
from kirby-uniform.
You can use Postmark by using the postmark
email service. To use it with the Uniform email action you only have to specify the service and service-options like this:
'actions' => array(
array(
'_action' => 'email',
'to' => (string) $page->email(),
'sender' => '[email protected]',
'subject' => $site->title()->html() . ' - message from the contact form',
'service' => 'postmark',
'service-options' => array(
'key' => 'yourkey'
)
)
)
from kirby-uniform.
Thank you, it's working perfectly. I'm still not sure where I set the
'to' => (string) $page->email()
, so I manually
set it to:
'to' => '[email protected]'
for now.
from kirby-uniform.
This means that the txt file of your page is expected to have a field named 'email' in it. So basically you would have something like:
Title: Contact Form
----
email: [email protected]
----
from kirby-uniform.
Oh, that makes sense. Thank you so much -- it's working correctly now.
I guess the issue can be closed.
from kirby-uniform.
Related Issues (20)
- Invalid CSRF token question HOT 3
- Without redirection errors accumulate over time when form is submitted multiple times HOT 3
- Incompatibility with Kirby 3.6 : Str::template() parameters deprecated HOT 2
- Custom classes HOT 1
- Choose Date Format for Form Fields HOT 3
- PHP Deprecated htmlspecialchars(): Passing null to paramete HOT 4
- Plugin is not moved by `getkirby/composer-installer` HOT 3
- Post/Redirect/Get not working HOT 1
- Character "&" gets "&" HOT 2
- Bug with Honeypots guard and the autocomplete attribute HOT 2
- RCP: "done" closure HOT 5
- Allow body in email action HOT 6
- Distinguish between validation errors and server/action errors HOT 2
- Creation of dynamic property Uniform\Actions\EmailSelectAction::$data is deprecated HOT 1
- Error on form submission after update to PHP 8.1 HOT 2
- Option for a custom message in guards HOT 1
- [K4] Issue with form submission
- [K4] 4.0 Compatibility HOT 9
- Plugin not moved to plugins folder HOT 3
- Translations not working properly HOT 6
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 kirby-uniform.