For some reason, if I use the following code, only one image seems to get sent:
$sql = mysql_query("SELECT photo FROM article_info");
while($row = mysql_fetch_assoc($sql)) {
foreach($row as $img) {
$mime->addHTMLImage($img);
}
}
But if I were to manually enter each image:
$mime->addHTMLImage("path_to/image1.jpg");
$mime->addHTMLImage("path_to/image2.jpg");
Both images will be sent. Am I doing something wrong? Why would I only be sending/receiving one image? Any suggestions? Thanks in advance.