• I am trying to use cf7 to as a leads list. I collect zipcode on the form and when submit is pressed, I would like to take the zipcode value and perform a lookup in MySQL to obtain an email address based on the zipcode, if the zipcode is not found, I have a default email to use. I then want to insert this email address as the to: address in the wp_send mail call so it goes to the looked up (or not found default)address. I’m very new to wp so this is a bit if a struggle. Haven’t found much on creating shortcodes from a different table than the contact form table. Anyone have any ideas, and there these snippets would go in contact form 7. I have Contact Form 7, the cfdb, and the cf7 dymamic text extension plugins loaded, and a new cf7 table in the database that performs the zipcode to email mapping, just need to know how wire them together.

    https://wordpress.org/plugins/contact-form-7/

  • The topic ‘Pull to: email address from database after contact forn submit before wp_mail’ is closed to new replies.