How to send multiple emails in PHP and MySQL via phpmailer

Guctuastes

New Member
I have a problem. When i click send button, just \[code\][email protected]\[/code\] receives the message.How to change it? I'm use Gmail SMTP send out.There are 2 records in the database:Here is my code:include "phpmailer/class.phpmailer.php";$host = "localhost";$user = "root";$pass = "root";$db = "mailTest";mysql_connect($host, $user, $pass);mysql_select_db($db);$query = "SELECT email FROM list";$recordset = mysql_query($query);$row_recordset = mysql_fetch_assoc($recordset);$tota_row_recordset = mysql_num_rows($recordset);$msg = strip_tags($_POST['msg']);$mail= new PHPMailer(); //
 
Back
Top