• Resolved Andi

    (@atanke)


    Hi I’m using CF7 for a long time. Everything was configured well and was working for a longer time. But since some days the email address of the sender is missing in the received emails.
    I have this line in the form
    <label> Ihre Emailadresse (erforderlich) <br>[email* emailadresse] </label>
    and this line in the mail tab in the body of the mail
    Absender: [vollername] <[emailadresse]>
    Why the email in not submitted?

    Best Regards

    Andi

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Andi

    (@atanke)

    ok, now I’ve found the prob.
    I’m processing the form data

    ‘add_action(“wpcf7_before_send_mail”, “wp_cf7_anfrageform_berechnen”);
    function wp_cf7_anfrageform_berechnen($wpcf7_data)
    {
    $submission = WPCF7_Submission::get_instance();
    if (!$submission){return;}
    $posted_data = $submission->get_posted_data();
    $properties = $wpcf7_data->get_properties();

    … calculate some values …

    $email_output = “… some content”;
    $properties[‘mail’][‘body’] .= $email_output;
    $wpcf7_data->set_properties( $properties );
    }’
    if I don’t do it, the emailaddress is in the received email, but if I activate my stuff it is deleted.
    I think the prob should be the
    ‘$properties = $wpcf7_data->get_properties();’
    and the
    ‘$wpcf7_data->set_properties( $properties )’
    somewhere there the email will be deleted.
    Can you help me to figure out why this happens or how else I can add some text to the email body?

    Thanks

    Andi

    Thread Starter Andi

    (@atanke)

    Hello? No one out here?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘BUG?: Missing the sender email’ is closed to new replies.