-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Images wrongly attached to the mail #50
Comments
I've restored boundary quotes for #48, but unnecessary filename quotes do get flagged by msglint, and using your filename in Apple Mail does not result in a quoted name. Can you give it another try and see if the boundary quoting change fixes it? |
UNSUBSCRIBE
|
On 30 Apr 2013, at 13:40, Rene Rafael Vogt-Lowell [email protected] wrote:
That's not going to do anything - go and change your settings on GitHub. |
Hi Synchro, I've tried at work today, but was not good too. Same issue. |
ok My image is ok into the mail with the full url in the source. So isn't something wrong in the cid generation in the function MsgHTML? |
I'd missed a place where it was setting the cid for the embedded image, so it was making a new cid instead of using the one already created (line 2493). That's fixed in HEAD now, please give it a try. |
Fix double suffix on image cids, see #50 Remove unneeded test files, re-use example content for tests Remove reference to phpmailer-lite Ignore .idea folder
Spotted another error - it was also creating those matching cids in AttachAll, which could result in duplicate suffixes when combined with MsgHTML. I've now altered it so it only uses the suffixed cids in MsgHTML - everywhere else you're expected to do it yourself, which is as it used to be. |
Ok Acknowledge. |
Thanks, closing. |
Hi
I've noticed on the last commit, that now inline images base64 encoded are wrongly attached to my mails, as before they were embedded.
Result before the change (open and close tags omitted for the cid lines):
--b2_66908324beade643ef61833062a95135
Content-Type: image/jpeg; name="E_maging_Compute_4e1573014c224.jpg"
Content-Transfer-Encoding: base64
Content-ID: vendor_image
Content-Disposition: inline; filename="E_maging_Compute_4e1573014c224.jpg"
Result with the new commits:
--b2_4c18b756c600578cfb921d1e3123e7c0
Content-Type: image/jpeg; name="E_maging_Compute_4e1573014c224.jpg"
Content-Transfer-Encoding: base64
Content-ID: [email protected]
Content-Disposition: inline; filename=E_maging_Compute_4e1573014c224.jpg
The "cid:" call of the image is the same for both source mail.
But in the second case, the image is broken and just attached to the mail (wrongly)
Line 2493 in class.phpmailer.php could be the one.
I don't know if the lacks of quotes could have an influence on that. Not yet test that point.
Anyway it's an RFC recomend so...
Thanks for the work ;)
The text was updated successfully, but these errors were encountered: