想放在内容里,首先要声明你发的是网页形式的邮件$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";在headers里面加上这句,就可以象网页一样用了

解决方案 »

  1.   

    嗯,然后呢,对mail有什么要改的,?怎么把图片放进去??
      

  2.   

    就象你做网页一样啊!很简单的!<img src="">可能要写绝对地址!下面是手册上的例子!
    <?php
    /* recipients */
    $to  = "[email protected]" . ", " ; // note the comma
    $to .= "[email protected]";/* subject */
    $subject = "Birthday Reminders for August";/* message */
    $message = '
    <html>
    <head>
    <title>Birthday Reminders for August</title>
    </head>
    <body>
    <p>Here are the birthdays upcoming in August!</p>
    <table>
    <tr>
      <th>Person</th><th>Day</th><th>Month</th><th>Year</th>
    </tr>
    <tr>
      <td>Joe</td><td>3rd</td><td>August</td><td>1970</td>
    </tr>
    <tr>
      <td>Sally</td><td>17th</td><td>August</td><td>1973</td>
    </tr>
    </table>
    </body>
    </html>
    ';/* To send HTML mail, you can set the Content-type header. */
    $headers  = "MIME-Version: 1.0\r\n";
    $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";/* additional headers */
    $headers .= "To: Mary <[email protected]>, Kelly <[email protected]>\r\n";
    $headers .= "From: Birthday Reminder <[email protected]>\r\n";
    $headers .= "Cc: [email protected]\r\n";
    $headers .= "Bcc: [email protected]\r\n";/* and now mail it */
    mail($to, $subject, $message, $headers);
    ?> 
      

  3.   

    你可以在内容里加上图片的绝对地址,如:http://.............. 这样发过去,就会在接受方显示图片了...........
      

  4.   

    对了,要加上标签<img>,当然邮件不能已纯文本的方式发送
      

  5.   

    你对邮件的概念没有搞清楚
    发邮件有两种形式,html和text
    如果要想在内容里面贴图片,只能以超文本(html)的形式发送
    如果想使用文本的形式发送图片,只能放在附件内大家给你的办法是可行的,是你自己没有搞清概念
      

  6.   

    附件是邮件内容的一部分,查看MIME规范,或者查看带附件的邮件的源码(Outlook, Foxmail都可以看)模仿一下就行