-
Notifications
You must be signed in to change notification settings - Fork 95
GMail/Sheets images embedded inline in draft email get sent as attachments only #163
Comments
Same Problem, Have you found any solution yet? |
I suspect it is some sort of security measure by Google. I got around it by using a URL image.
…Sent from my iPhone
On 5 Jan 2021, at 4:47 pm, vivekagr2021 ***@***.***> wrote:
Same Problem, Have you found any solution yet?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Subscribing! It's a problem for me too! |
in your draft do not upload or drag and drop the picture Solution: Click on insert photo and select web address URL (the URL should be public) and paste the URL of your pic. |
Ran into this issue as well while setting up mail merge for one of our staff members. Began by looking around the Web; found code at https://stackoverflow.com/a/49621562 which provided a possible fix, but after modding the @mhawksey code to incorporate the code from the SO answer as part of After a few (dozen) iterations of banging my head on it, I sent a message with inlines to myself, and compared the HTML code from "Show Original" to both a Draft message HTML Body Mail Merge Sent message HTML Body Human Sent message HTML Body Essentially, the "draft" message My deduction is that Google changed how they handled Inline images at some point between when @mhawksey wrote Now, knowing what a "proper"
Here's the code I put together; it could probably be more optimized, but programming isn't my forte. Line 98 (becomes 2 lines):
Lines 114-133 (too many changes to break out):
@mhawksey, I'd be happy to submit this as a patch to your code if you want. |
Fix for the inline image issue googleworkspace#163
Added handling of inline images inserted in the Gmail draft via image upload
@tyochelson-lwhs thanks for your investigation and reporting. Looking into this I think you are right the the |
… from the Gmail draft (#173) * Initial commit of Mail Merge solution Create and distribute visual rich mail merges with Gmail and Google Sheets * Minor edits to readme text Edits based on comments in #65 (comment) * update to head * Updated to head * Fix for null error when sending emails without variable tags Fix for issue #98 on gsuitedevs branch #98 * Refactoring and V8 update Includes ability for using formatted Google Sheets cell values for currencies, dates and more as well as detecting/ignoring filtered hidden rows. Code also updated to highlight Gmail `.sendMail()` options * Updated mail merge solution moving Advanced Sheets Service and moving to V8 Removed dependency on Advanced Sheets Service * Mail merge fix to escape cell data Fix for #127 to escape cell data to make JSON safe * Fixed EOF https://github.com/gsuitedevs/solutions/pull/130/files/a8d745d949b33484dd6a33da4c0dfcfb1202cfdf#r431210317 * Inline image handling for mail merge Fix for the inline image issue #163 * Nit fix for mail merge #163 * Revert "Inline image handling for mail merge" This reverts commit 363060c. * Fix for mail merge inline image handling #163 Added handling of inline images inserted in the Gmail draft via image upload
I thought this might be a GMail problem but am now thinking it must be caused by the script that sends the emails. The embedded image looks fine in the GMail draft. The recipient gets an image placemark with an x in the middle (not found) and the image is there as an attachment. Means I can't have a letterhead on my emails.
The text was updated successfully, but these errors were encountered: