Title: Help with config.php settings
Last modified: August 22, 2016

---

# Help with config.php settings

 *  [trainrider](https://wordpress.org/support/users/trainrider/)
 * (@trainrider)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/help-with-configphp-settings/)
 * Hi
 * We are using contact form 7 on a clients site and the client has just asked us
   to create REST calls of any received mails to an outside api
 * We found your plug in Contact form 7 to REST call which seems to be exactly what
   we were looking for
 * But we have tried recoding the config.php page slightly to something more like
   what the api server is anticipating
 * <?php
    class Conf { const cf7RESThost=’pastiche.org.uk’; const cf7RESTport=’90’;
   const cf7RESTmethod=”POST”; const cf7RESTpath = ‘[http://54.74.140.148/services/contacts/](http://54.74.140.148/services/contacts/)‘;
 *  /*BODY {tag-names-to-auto-replace}*/
    public static function GeBody() { $cf7RESTparams
   = <<<BODY <contact> <contactEmail>{your-email}</contactEmail> <contactName>{your-
   name}</contactName> <contactTelephone>{Telephone}</contactTelephone> <notes>{
   your-message}</notes> </contact> BODY;
 * return $cf7RESTparams;
    }
 * }
    ?>
 * But the info passed in the call just replicates the { } placeholders we set an
   not the actual content of any of the emails
 * What are we doing wrong, can you help?
 * Thanks in advance
 * [https://wordpress.org/plugins/contact-form-7-to-rest-call/](https://wordpress.org/plugins/contact-form-7-to-rest-call/)

The topic ‘Help with config.php settings’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/contact-form-7-to-rest-call.svg)
 * [Contact Form 7 to REST Call](https://wordpress.org/plugins/contact-form-7-to-rest-call/)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7-to-rest-call/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7-to-rest-call/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7-to-rest-call/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7-to-rest-call/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [trainrider](https://wordpress.org/support/users/trainrider/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/help-with-configphp-settings/)
 * Status: not resolved