nbcommunication Posted June 23, 2023 Posted June 23, 2023 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 8
DL7 Posted January 22 Posted January 22 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.
nbcommunication Posted January 23 Author Posted January 23 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now