Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WP-CLI Support #33

Open
bhubbard opened this issue Jul 25, 2017 · 3 comments
Open

WP-CLI Support #33

bhubbard opened this issue Jul 25, 2017 · 3 comments
Assignees

Comments

@bhubbard
Copy link
Contributor

I would like to see support for WP-CLI. There could be useful commands such as sending a test email, etc.

@pgraham3 pgraham3 self-assigned this Nov 16, 2018
@pgraham3
Copy link
Contributor

@bhubbard @guillaumemolter

Hello - I have a branch here for the work I am doing on adding WP-CLI support.

https://github.com/wildbit/postmark-wordpress/tree/wp-cli-support

With it you can generate test sends, including the option to set the from address, to address, subject, body, and open tracking flag. I hope to release it next week after some more testing.

What else would you benefit from being included as WP-CLI commands?

@bhubbard
Copy link
Contributor Author

@pgraham3 I think the ability to send emails, or batch emails (not just test emails) would be the biggest.

Just an FYI, you might find this library useful - https://github.com/wp-api-libraries/wp-postmark-api

@pgraham3
Copy link
Contributor

pgraham3 commented Apr 12, 2019

@bhubbard @guillaumemolter

Thanks for the feedback on this feature.

I added a bunch of additional commands and have the Postmark WP-CLI commands available in the development tag in the plugin's WordPress SVN repo now. The commands include the majority of all of the available Postmark API calls.

You can test it out by installing the development version with this WP-CLI command:

$ wp plugin install postmark-approved-wordpress-plugin --version=development --activate

or upgrading to it via this command:

$ wp plugin update postmark-approved-wordpress-plugin --version=development

Run $ wp help postmark to see a list of available commands and $ wp help postmark sub_command_name to get information on a specific command, i.e. $ wp help postmark get_bounces.

Before trying out the account level commands (adding a domain, modifying a sender signature, etc...), define POSTMARK_ACCOUNT_TOKEN in your wp-config.php file:

define ('POSTMARK_ACCOUNT_TOKEN', 'youraccountapitoken');

Can you give it a try in a staging or dev WordPress environment not used for production and let me know what feedback you have/if you get any unexpected errors, etc...?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants