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? Quote 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 ')); ?> Quote 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? Quote 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"); Quote Link to comment https://forums.phpfreaks.com/topic/53185-using-mail-attachment/#findComment-262816 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.