Guest Posted May 27, 2007 Share Posted May 27, 2007 Im using phpmailer to send mail through smtp and I can attach an image like $mail->AddAttachment("/tmp/image.jpg", "new.jpg"); But how can I use that image in my email itself? Link to comment https://forums.phpfreaks.com/topic/53185-using-mail-attachment/ Share on other sites More sharing options...
paul2463 Posted May 27, 2007 Share Posted May 27, 2007 <?php $mail->AddEmbeddedImage(filename, cid, name)); //By using this function with this example's value above, leads into this code: $mail->AddEmbeddedImage('my-photo.jpg', 'my-photo', 'my-photo.jpg ')); ?> Link to comment https://forums.phpfreaks.com/topic/53185-using-mail-attachment/#findComment-262745 Share on other sites More sharing options...
Guest Posted May 27, 2007 Share Posted May 27, 2007 how would I use that in the body of the document? Link to comment https://forums.phpfreaks.com/topic/53185-using-mail-attachment/#findComment-262803 Share on other sites More sharing options...
paul2463 Posted May 27, 2007 Share Posted May 27, 2007 exactly as you would your $mail->AddAttachment("/tmp/image.jpg", "new.jpg"); Link to comment https://forums.phpfreaks.com/topic/53185-using-mail-attachment/#findComment-262816 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.