If it does not include the file: $mail = new Html_mime_mail (); $html = "HTML content"; $mail->add_html ($html, $text); $mail->build_message (); $mail->send (recipient, mail, sender, email, title, extra header); --------------------------------------------------------------------------------If a file is included: $url = "www.cuti.com.my/AD/"; The file address does not have a diagonal line $path = "/mail/ad/"; The path ends with a diagonal $filename 1 = a.jpg; $backgrnd 1 = fread ($fp = fopen ($path. $filename 1, R), FileSize ($path. $filename 1)); Fclose ($FP); ... According to this type of push ... $filename 6 = f.gif; $backgrnd 6 = fread ($fp = fopen ($path. $filename 6, R), FileSize ($path. $filename 6)); Fclose ($FP); $mail->add_html_image ($backgrnd 1, $filename 1,image/jpeg,http://. $url. $filename 1); ... According to this type of push ... $mail->add_html_image ($backgrnd 6, $filename 6,image/gif,http://. $url. $filename 6); $mail = new Html_mime_mail (); $html = "HTML contains image content"; $mail->add_html ($html, $text); $mail->build_message (); $mail->send (recipient, mail, sender, email, title, extra header);
http://www.bkjia.com/PHPjc/531883.html www.bkjia.com true http://www.bkjia.com/PHPjc/531883.html techarticle if not included: $mail = new Html_mime_mail (), $html =html, $mail->add_html ($html, $text); $mail->build_message (); $ Mail->send (recipient, email, sender, e-mail, logo ...)