Open bhubbard opened 7 years ago
@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?
@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
@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!
I would like to see support for WP-CLI. There could be useful commands such as sending a test email, etc.