php邮件的问题。有些功能不起作用 [英] problem with php mail. Some functions don´t work

查看:75
本文介绍了php邮件的问题。有些功能不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Bcc的人:收到邮件,但他看不到他是Bcc。只是能够看到真实但没有别的。

第二个问题是回复:如果你想回答你不知道该写谁...



The person with Bcc: receives the Mail, but he can´t see that he´s Bcc. Just able to see the real to but nothing else.
The second problem is Reply-To:. If you want to answer you don´t know who to write..

<form method='POST' action='' enctype='multipart/form-data'>
<table id='row'>
	<tr>
		<td><select id="to" name='to[]'>
			<option value='To:'>to:</option>
			<option value='Cc:'>CC:</option>
			<option value='Bcc:'>BCC:</option>
			<option value='Reply-To:'>Reply-To:</option>
			<select></td><td><input type='text' id='adr' name='mail[]'><input type='button' onclick='newAdres ()' value='+'></td>
	</tr>







$art = array();
	$art = $_POST['to'];
	$bet=$_POST['betr'];
	$text=$_POST['text'];
	$to = array();
	$to=$_POST['mail'];
	$header = array();
	$header[] = "From: me < me@nnn.com >";
	$header[] = "MIME-Version: 1.0";
	$header[] = "Content-type: text/plain; charset=iso-8859-1";
	$header[] = "X-Mailer: PHP/".phpversion();
	
	$i=0;
	while (isset($art[$i])){ //Header (Bcc, Cc,... )
		$j=$i+4;
		$header[$j] = "$art[$i] $to[$i]";
		$i++;
	}
mail(null,$bet, $text, implode("\r\n", $header));

推荐答案

art = array();
art = array();


art =
art =


_POST [' to'];
_POST['to'];


这篇关于php邮件的问题。有些功能不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆