Title: Error calling POST
Last modified: November 8, 2016

---

# Error calling POST

 *  Resolved [wpmacblog](https://wordpress.org/support/users/wpmacblog/)
 * (@wpmacblog)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-calling-post/)
 * Hi Jason,
    I am having trouble getting a Test Email to fire off. (And, any other
   mail, for that matter.) Your plugin installation and setup went fine, I added
   the GMAIL API without problems and the Connection Test works fine for port 443.
   I am using PHP 7 on my server (which may be part of the problem.)
 * (I do apologize if this thread has already been talked about. I did try to find
   it in your support threads, with no luck.)
 * When I hit “Send Test Email” I get this error message:
 * Error calling POST [https://www.googleapis.com/gmail/v1/users/me/messages/send](https://www.googleapis.com/gmail/v1/users/me/messages/send):(
   400) Precondition check failed.
 * Below is the Troubleshooting Data:
 * WordPress: 4.6.1 en_US UTF-8
    WordPress Theme: Memberlite – Child Theme WordPress
   Plugins: Akismet, Debug, Digital Publications by Supsystic, Download Monitor,
   Jetpack by WordPress.com, Magee Shortcodes, Memberlite Shortcodes, WP Courseware–
   Paid Memberships Pro Add On, Paid Memberships Pro, PDF Embedder, Paid Memberships
   Pro – Address For Free Levels Add On, Paid Memberships Pro – Advanced Levels 
   Page Shortcode Add On, Paid Memberships Pro – Check Levels Add On, Paid Memberships
   Pro – Custom Post Type Add On, PMPro Customizations, Paid Memberships Pro – Sponsored
   Members Add On, Paid Memberships Pro – Download Monitor Integration Add On, Paid
   Memberships Pro – Email Confirmation Add On, Paid Memberships Pro – Email Templates
   Add On, Paid Memberships Pro – Group Discount Codes Add On, Paid Memberships 
   Pro – MailChimp Add On, Paid Memberships Pro – Pay by Check Add On, Paid Memberships
   Pro – Register Helper Add On, Paid Memberships Pro – Signup Shortcode, Postman
   SMTP, Page Builder by SiteOrigin, SiteOrigin CSS, SiteOrigin Widgets Bundle, 
   Theme My Login, UpdraftPlus – Backup/Restore, WP Courseware WordPress wp_mail
   Filter(s): wp_staticize_emoji_for_email WordPress wp_mail_from Filter(s): pmpro_wp_mail_from
   WordPress wp_mail_from_name Filter(s): pmpro_wp_mail_from_name WordPress wp_mail_content_type
   Filter(s): pmpro_wp_mail_content_type Postman: 1.7.2 Postman Sender Domain (Envelope
   |Message): mydomain.com | mydomain.com //These domains have been changed for 
   this public forum Postman Prevent Message Sender Override (Email|Name): Yes |
   Yes Postman Active Transport: Gmail API (https:oauth2://www.googleapis.com:443)
   Postman Active Transport Status (Ready|Connected): Yes | Yes Postman Deliveries(
   Success|Fail): 0 | 144 Postman TCP Timeout (Connection|Read): 60 | 90 Postman
   Stealth Mode: Yes Postman File Locking (Enabled|Temp Dir): No |

Viewing 1 replies (of 1 total)

 *  Thread Starter [wpmacblog](https://wordpress.org/support/users/wpmacblog/)
 * (@wpmacblog)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-calling-post/#post-8419955)
 * Hello Jason,
    I discovered the two-fold problem (and fix.) First, when I set 
   up the GMAIL API, I used our company email/domain. Apparently, in order for the
   GMAIL API OAUTH 2.0 to work, you must use a gmail email address account (or an
   unsecured open email account from your own server that can be used by GMAIL.)
   Once I created a new GMAIL address under the GMAIL Dashboard, your plugin “Test
   Email” worked fine. Only then, did the GMAIL Dashboard allow me to add my company
   email/domain back in as the default.
 * The second issue was within our membership plugin that issued the emails. I recently
   upgraded to PHP 7, but our membership plugin uses split() function to create 
   the From/Send/Domain info in the Email Header, but PHP 7 does not support split()
   function. I changed back to 5.6.28, and all works great! Thanks for an awesome
   plugin.

Viewing 1 replies (of 1 total)

The topic ‘Error calling POST’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/postman-smtp_7c7b78.svg)
 * [Postman SMTP Mailer/Email Log](https://wordpress.org/plugins/postman-smtp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/postman-smtp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/postman-smtp/)
 * [Active Topics](https://wordpress.org/support/plugin/postman-smtp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/postman-smtp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/postman-smtp/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [wpmacblog](https://wordpress.org/support/users/wpmacblog/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/error-calling-post/#post-8419955)
 * Status: resolved