Multiple Images(Attachements) Mail_Mime

the mail() function

Moderators: macek, egami, gesf

thelos999
New php-forum User
New php-forum User
Posts: 1
Joined: Sat Oct 15, 2011 5:39 pm

Multiple Images(Attachements) Mail_Mime

Postby thelos999 » Sat Oct 15, 2011 5:45 pm

For some reason, if I use the following code, only one image seems to get sent(image2 and not image1):

Code: Select all

$sql = mysql_query("SELECT photo FROM article_info");
   while($row = mysql_fetch_assoc($sql)) {
      $mime->addHTMLImage($row['photo']);
   }


But if I were to manually enter each image:

Code: Select all

$mime->addHTMLImage("path_to/image1.jpg");
$mime->addHTMLImage("path_to/image2.jpg");


Both images will be sent. If tried doing a simple, and it seems like image2 is pushing image1 out, or something? Am I doing something wrong? Why would I only be sending/receiving one image? Any suggestions? Thanks in advance.

If tried ding a simple, and it seems like image2 is pus

Return to “PHP coding => Mail”

Who is online

Users browsing this forum: No registered users and 1 guest