• Hello,

    I had to change the source code a bit, because my @WPmail did not work, i rewrote contact form 7 to use php’s mail() instead. it is working fine.

    Now i need to add something to the plugin.
    I need the contact form 7 plugin not only to send an email to the adress i entered in the admin menu, i rather need it to place every form input in a mysqldatabase (datailed).

    What i did is, i placed the following code in the compose_and_send_mail($mail_template) function.

    $sql= array ('content' => $body, 'betreff' => $subject, 'mail' => $sender);
    		$result=$wpdb->insert('*my own one*', $sql);

    Well, up to now it is working realy good.

    What i need is, to seperate all fields i added in the admin menu but i cant find the place, where contact form 7 compares those in $mail_template.

    Any ideas where to find the $_POST’s before they become compared?
    Or how to var_dump($mail_template)?

    kind regards,
    john

Viewing 1 replies (of 1 total)
  • Hi!

    This post was a huge help. I’m attempting to do the same, so if I found out where that’s happening I’ll let you know.

    Thanks so much!

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Contact Form 7] Adding insert into mysql…’ is closed to new replies.