mail怎么发送图片 想放在内容里,首先要声明你发的是网页形式的邮件$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";在headers里面加上这句,就可以象网页一样用了 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 嗯,然后呢,对mail有什么要改的,?怎么把图片放进去?? 就象你做网页一样啊!很简单的!<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);?> 你可以在内容里加上图片的绝对地址,如:http://.............. 这样发过去,就会在接受方显示图片了........... 对了,要加上标签<img>,当然邮件不能已纯文本的方式发送 你对邮件的概念没有搞清楚发邮件有两种形式,html和text如果要想在内容里面贴图片,只能以超文本(html)的形式发送如果想使用文本的形式发送图片,只能放在附件内大家给你的办法是可行的,是你自己没有搞清概念 附件是邮件内容的一部分,查看MIME规范,或者查看带附件的邮件的源码(Outlook, Foxmail都可以看)模仿一下就行 [问题]js数组和php数组的重口味关系 php 清除已经 echo 的内容 一个错误 php连接SQL Server 问题,高手请支招!! 一个类和两个函数 exec("echo 0 > $counterFile");是什么意思? 紧急求助,在线等待!!! 小问题 IE缓存的问题 php怎样支持soap????大虾们帮帮我!!!!!!!!!!! php怎样模拟访问? 看看这段代码回出现什么问题,如何优化,谢谢大家,来者有分
<?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);
?>
发邮件有两种形式,html和text
如果要想在内容里面贴图片,只能以超文本(html)的形式发送
如果想使用文本的形式发送图片,只能放在附件内大家给你的办法是可行的,是你自己没有搞清概念