0
    $header = "From: $From_Email\n";
    $header .= "MIME-Version: 1.0\n";
    $header .= "Content-Type: multipart/mixed; ";
    $header .= "boundary=$num\n";
    $header .= "--$num\n";

    # Define the message section
     $header .= "Content-Type: text/html\n";
     $header .= "Content-Transfer-Encoding:8bit\n\n";
     $header .= "$strMail\n";
     $header .= "--$num\n";

      # Define the attachment section
      $header .= "Content-Type:  image/jpg; ";
      $header .= "name=\"Photo.jpg\"\n";
      $header .= "Content-Transfer-Encoding:base64\n";
      $header .= "Content-Disposition:attachment; ";
      $header .= "filename=\"Photo.jpg\"\n\n";
      $header .= "--$num--";

Can any one see why the above doesn't work in outlook please. You get the message 0k but the image is corrupt. If you look at the message source it is all AAAAAAAAA's. It works fine in express

Thanks

2
Contributors
4
Replies
19
Views
4 Years
Discussion Span
Last Post by knutsford-soft
0

Is Outlook set to receive HTML emails?

This is not the default setting, normally it is plain text

0

The message is fine - it is just the image that isn't so I presume it is. Two people are having the same problem and both are using outlook.

0

I have been told that they are ok now even though I haven't touched anything. Thnaks for all your help

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.