• Hi

    When sending an email through mandrill using the wpMandrill plugin

    $content = ‘<p>An offer has been made on the following vehicle:</p>
    <p>’.get_post_meta($_POST[‘offerid’],’vehicle_title’,1).'</p>
    <p>User is ‘ . $user->first_name . ‘ ‘ . $user->last_name.'</p>’;
    $email=’[email protected]’;
    $attachments=array(‘https://domain.com//InspectionForm-Final.pdf&#8217;);

    wp_mail(“[email protected]”,”Offer made on domain.com”,$content,”From: $email”,$attachments);

    AS soon as attachments is added the email I receive looks like the below

    <p>An offer has been made on the following vehicle:</p>
    <p>Bentley Flying Spur V8</p>
    <p>User is </p>

    If I remove the attachments $var i get my normal templated html email.

    Any ideas?

    Thanks

    Matt

    https://www.ads-software.com/plugins/wpmandrill/

  • The topic ‘Sending attachment with wp_mail breaks forces email to send as plain text’ is closed to new replies.