Contact Form 7
[resolved] Get "To" Address from Contact Form 7 Database (2 posts)

  1. Aaron Ware
    Posted 5 years ago #

    I'm in the middle of creating a plugin that works with CF7.

    Just looking for a heads up on a reliable way to get a form mail 1 recipient "To" address out of the database. I see it's within one field as a value of a:7{s:20:""} of the database. But I wanted to know if there was a method call or what not from within contactForm& to get this information.

    Crawled through some of the code of CF7 but nothing jumped out at me other than potentially doing a regex?


  2. Aaron Ware
    Posted 5 years ago #

    Realized this data was just serialized. utilized the maybe_unserialize method and it worked liked a charm

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic