• Resolved gottfrieds

    (@gottfrieds)


    In a shortcode I have the following code:

    
    print_r($anhang);
    $erg = wp_mail($empfaenger, $_POST['betreff'], $em_text, $headers, $anhang );
    echo '<br>' . $erg;

    This is the generated output:

    Array ( [0] => https://huppenbroich.de/spd-simmerath/wp-content/uploads/2018/05/satzung.pdf )
    1

    The array is correctly filled, the email is correct. Unfortunately the attachment is missing. What might be the problem.This is the header:

    
    headers = '';	
    $headers .= "MIME-Version: 1.0 \r\n";
    $headers .= "Content-type: text/html; charset=\"UTF-8\" \r\n";
    $headers .= "From: SPD Simmerath <[email protected]>\r\n";
    $headers .= "REPLY-TO: [email protected] \r\n";	

    Who can support me???

    • This topic was modified 6 years, 3 months ago by gottfrieds.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp_mail doesn’t send attachment’ is closed to new replies.