您好,有人可以帮助我,我想将表格数据发送到另外2个电子邮件地址,但我不知道在哪里添加这2封电子邮件。已经存在的那个工作完美。
<form id="feedback" name="feedback" method="post">
<ul class="email-form">
<li>
<label>Name Surname</label>
<input type="text" name="full-name">
</li>
<li>
<label>Email</label>
<input type="text" name="email">
</li>
<li>
<label>Contact Number</label>
<input type="text" name="contact">
</li>
<li>
<label>Message</label>
<textarea name="message"></textarea>
</li>
<?php
require_once('class.phpmailer.php');
$fullname = $_POST['full-name'];
$email_from = $_POST['email'];
$subject = $_POST['subject'];
$message = $_POST['message'];
$mail = new PHPMailer();
$body = "<p style='padding-bottom:10px;font-family:arial;font-size:12px;'>You have received a new message from EPG website.</p><p style='font-family:arial;font-size:12px;'>Name: ".$_POST['full-name']."<br />Email Address: ".$_POST['email']."<br />Contact Number: ".$_POST['contact']."<br />Message: ".$_POST['message']."</p>";
$mail->SetFrom('Info@mysite.com', 'Feedback');
$address = "Info@mysite.com";
$mail->AddAddress($address, "Information Desk");
$mail->Subject = "feedback";
$mail->MsgHTML($body);
if(!$mail->Send())
{}
?>
<li>
<input type="submit" value="Send Email" />
</li>
</ul>
</form>