Giter Club home page Giter Club logo

Comments (5)

chbach avatar chbach commented on May 30, 2024

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.

mzur avatar mzur commented on May 30, 2024

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.

dink avatar dink commented on May 30, 2024

@mzur

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.

chbach avatar chbach commented on May 30, 2024

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.

dink avatar dink commented on May 30, 2024

@chbach

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.