Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The image embedding in the email option is not there in the smtp module. The patch exists in https://www.drupal.org/node/2494339 for the Drupal 7 module and it is not there for the Drupal 6 module.
Comment | File | Size | Author |
---|---|---|---|
#14 | smtp-n2829660.patch | 1005 bytes | poornachandran |
#3 | 2829660-Embed_Images_inline_in_Drupal_6_smtp_module.patch | 1009 bytes | poornachandran |
Comments
Comment #2
poornachandran CreditAttribution: poornachandran commentedComment #3
poornachandran CreditAttribution: poornachandran commentedThe fix is in the patch which will embed the image in the email using the AddEmbeddedImage function of the PHPMailer
Comment #4
pankajchaudhari CreditAttribution: pankajchaudhari as a volunteer commentedTested the patch and embedded the image inline in email template.
Comment #5
pankajchaudhari CreditAttribution: pankajchaudhari as a volunteer commentedComment #6
vipulsuriya CreditAttribution: vipulsuriya commentedTested in my environment setup and it's working fine.
Comment #7
wundo CreditAttribution: wundo at Chuva Inc. for Chuva Inc. commentedPlease add some comments :)
PS: How do I test this?
Comment #8
poornachandran CreditAttribution: poornachandran commented@wundo
Purpose:
To embed an inline image like
<img src="cid:cid_name">
in the email template.Steps To Reproduce:
<img src="cid:cid_name">
.$message['images'][] = array("filepath" => "image_path", "cid" => "cid_name", "base64");
Comment #9
poornachandran CreditAttribution: poornachandran commentedComment #10
poornachandran CreditAttribution: poornachandran commentedReviews please on the patch :)
Comment #11
wundo CreditAttribution: wundo at Chuva Inc. for Chuva Inc. commented@Poornachandran I need a re-roll
Comment #12
poornachandran CreditAttribution: poornachandran commented@wundo I could apply the patch cleanly. So I think no re roll is needed.
Comment #13
poornachandran CreditAttribution: poornachandran commentedComment #14
poornachandran CreditAttribution: poornachandran commentedUpdated the patch to fix the issue Strict warning: Non-static method PHPMailer::_mime_types() should not be called statically in PHPMailer::_mime_types()
Comment #15
poornachandran CreditAttribution: poornachandran commentedIt is been there for a long time. Some reviews on this please...
Comment #16
wundo CreditAttribution: wundo at Chuva Inc. for Chuva Inc. commented