Jump to content

Recommended Posts

Posted

Hi,

We've been looking at using Postmark for some clients and we were delighted to see an existing module WireMailPostmark - https://processwire.com/modules/wire-mail-postmark/

 

However the note in the initial forum post about it not being used in production by the authors meant that for us we would need to build something a little bit more in line with what we need and can maintain through usage.

WireMailPostmarkApp is an implementation of postmark-php, somewhat in line with a previous WireMail module we built WireMailgun - https://processwire.com/modules/wire-mailgun/ - and its usage will be familiar to those who have used that module.

Here's the README: https://github.com/nbcommunication/WireMailPostmarkApp/blob/main/README.md

Cheers,

Chris

 

  • Like 8
  • 1 year later...
Posted

Hi @nbcommunication! I just installed the module and tested it via FormBuilder, but when triggering an email, I get the following error:

Compile Error

Cannot declare class ProcessWire\ProcessForgotPassword, because the name is already in use search►
File: ...\werkenv3\wire\modules\Process\ProcessForgotPassword.module:40

30:     * @method string renderEmailBody($url, $code, $html) Render the password reset email body, and $url should appear in that email body.
31:     * @method string renderErrorEmailBody($error) Render error email body
32:     * @method string renderContinue($url = './', $label = '') Render a continue link
33:     * @method string renderError($str) Render an error (when useInlineNotices is true)
34:     * @method string renderMessage($str) Render a message (when useInlineNotices is true)
35:     * @method string renderForm(InputfieldForm $form, $formName)
36:     *
37:     *
38:     */
39:    
40:    class ProcessForgotPassword extends Process implements ConfigurableModule {

41:    
42:        public static function getModuleInfo() {
43:            return array(
44:                'title' => __('Forgot Password', __FILE__), // getModuleInfo title

Any help is appreciated!

 

Edit: I have commented out the section of the processforgetpassword,and the error is gone. 

Posted

Hi @DL7,

I'm not sure what is causing this. We only use WireMailPostmarkApp on one install, although it is heavily used. The same line is present in WireMailgun, which we use extensively (100+ installs). None of these use FormBuilder though.

Whenever I've gotten a similar error it has been after upgrading core files, and a refresh of the modules sorts it. That would be worth a try.

I'd probably then look at a fresh PW install to see if it can be replicated.

Cheers,

Chris

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...