Share

PHPMailer

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

multipart/mixed

You are viewing a single message from this topic. View all messages.

  1. 2009-06-19 04:59:49 UTC
    if i compose an email with inline image and attachment image, they could not be displayed correctly in yahoo mail. inline image is missing.

    i found that multipart/mixed is missing. phpmailer used multipart/alternative and multipart/related.

    pls kindly advise.

    <?php

    require("phpmailer/class.phpmailer.php");

    $mail = new PHPMailer();

    $mail->IsSMTP(); // telling the class to use SMTP
    $mail->Host = "localhost"; // SMTP server
    $mail->IsHTML(true);
    $mail->From = "from@abc.com";
    $mail->AddAddress("1@abc.com");

    $mail->Subject = "An HTML Message";
    $mail->AddEmbeddedImage("1.jpg", "img1", "1.jpg","base64","image/jpeg");
    $mail->AddAttachment("2.jpg","2.jpg","base64","application/octet-stream");
    $mail->Body = 'Hello, <b>my friend</b>! \n\n This message uses HTML entities!<Br><img src="cid:img1"';
    $mail->send();

    ?>
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.