You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How do you embed images (JPEG) into an Apple Mail message so it REMAINS embedded in Gmail, instead of images becoming attachments?

How do you embed images (JPEG) into a Mail message so it REMAINS embedded in Gmail? instead, images appear only as attachments. This ruins a whole email in which each paragraph pertains to a specific image. The recipient loses all sense of context because the image all appear only as attachments at the very end of the email.


This is a horrible problem for me because of the type of business emails I send, and it's been a problem for 9 years. What makes it worse, is, I think, depending upon the email platform used by the sender of the email that I'm replying to, sometimes my images DO remain embedded properly in replies to emails sent via gmail.com. People using some clients and other email providers DO see my embedded images, as do users of Apple Mail.


I thought it was mainly when replying to Gmail messages that embedding fails, but after more testing, it turns out that even when I start with a blank new email in Mail, and send a test email with embedded images to my Gmail address, the images still do not appear embedded in the text when I open the email in my Gmail in-box. Size and resolution of images don't matter.


I wish Apple (maker of a hugely popular email client) and Google (maybe the biggest email service in the world) would solve this serious problem.

MacBook Air 13″, macOS 13.1

Posted on Dec 26, 2022 11:56 AM

Reply
Question marked as Top-ranking reply

Posted on Dec 26, 2022 6:53 PM

jeffsyrop wrote:

No, Omnis is hosting my own website and email, zenhell.com.

Then that is the most likely culprit. Your original screenshot is from the gmail web interface, correct? Can you confirm that it looks correct inside Mail in your "sent" mailbox?


If so, then it is likely the email service. I did a quick check of Omnis and this web page says:


Important information about specific attachments: as a security measure to prevent potential viruses, Omnis doesn't allow you to send or receive executable files (such as files ending in .exe). Executable files can contain harmful code that might cause malicious software to download to your computer. You can't send or receive the following file types: .exe, .com, .bat, .scr, .pif, .cmd, etc, even in ZIP or RAR archives. In case of blocking, you will see a message like: "Virus scan failed: Omnis.ExecutableFileBlocked.Zip_exe FOUND".


And I think that confirms it. They are scrambling your outgoing e-mail. Here's a dirty little secret if you didn't already know. Internet services can do one of two things well - either web services or e-mail service. Nobody does both well. These days, I'm not sure anyone can do either. I have noticed a remarkable decrease in basic competency with respect to shared web hosting providers. 15 or 20 years ago, you could have some company host your website and e-mail and there was never any problem. That's simply not possible anymore. They just can't seem to manage it.


I'm moving all my sites over to AWS CloudFront. I have some peculiar requirements with language support, but I've figured out a way to get it working the way I want for the most part. Most people wouldn't have this problem. You can use AWS Lightsail just to get your feet wet with a VPS-style service. I'm getting tired of dealing with the SSL certificates. They are quickly going the way of the web host. I much prefer the free, one-click AWS certificates.


For e-mail, I use Office 365 because I can use my own domain. You can even do that with iCloud now. There are a handful of email service providers that offer comparable services. But the same rules apply. People who do e-mail well couldn't do a web site to save their lives. I would have said the opposite for people who do web hosting but no one seems to be able to do that anymore anyway, so it's a moot point.

21 replies
Question marked as Top-ranking reply

Dec 26, 2022 6:53 PM in response to jeffsyrop

jeffsyrop wrote:

No, Omnis is hosting my own website and email, zenhell.com.

Then that is the most likely culprit. Your original screenshot is from the gmail web interface, correct? Can you confirm that it looks correct inside Mail in your "sent" mailbox?


If so, then it is likely the email service. I did a quick check of Omnis and this web page says:


Important information about specific attachments: as a security measure to prevent potential viruses, Omnis doesn't allow you to send or receive executable files (such as files ending in .exe). Executable files can contain harmful code that might cause malicious software to download to your computer. You can't send or receive the following file types: .exe, .com, .bat, .scr, .pif, .cmd, etc, even in ZIP or RAR archives. In case of blocking, you will see a message like: "Virus scan failed: Omnis.ExecutableFileBlocked.Zip_exe FOUND".


And I think that confirms it. They are scrambling your outgoing e-mail. Here's a dirty little secret if you didn't already know. Internet services can do one of two things well - either web services or e-mail service. Nobody does both well. These days, I'm not sure anyone can do either. I have noticed a remarkable decrease in basic competency with respect to shared web hosting providers. 15 or 20 years ago, you could have some company host your website and e-mail and there was never any problem. That's simply not possible anymore. They just can't seem to manage it.


I'm moving all my sites over to AWS CloudFront. I have some peculiar requirements with language support, but I've figured out a way to get it working the way I want for the most part. Most people wouldn't have this problem. You can use AWS Lightsail just to get your feet wet with a VPS-style service. I'm getting tired of dealing with the SSL certificates. They are quickly going the way of the web host. I much prefer the free, one-click AWS certificates.


For e-mail, I use Office 365 because I can use my own domain. You can even do that with iCloud now. There are a handful of email service providers that offer comparable services. But the same rules apply. People who do e-mail well couldn't do a web site to save their lives. I would have said the opposite for people who do web hosting but no one seems to be able to do that anymore anyway, so it's a moot point.

Dec 26, 2022 12:27 PM in response to jeffsyrop

Gmail has nothing to do with what you're seeing. It's a mail server, which has no affect on how any email client works.


Apple's Mail app used to do what you want. Then for a while it started dropping all image attachments at the bottom. I did a test just now under Ventura 13.1 and Safari 16.2. I dragged and dropped two JPEGs into the editing window, along with some text. It now once again places images inline (embedded) with the text.



This worked as expected regardless of whether I had settings under composing set to rich, or plain text.

Dec 26, 2022 12:34 PM in response to Kurt Lang

Thank you for your quick response. I send and receive a LOT of emails, and it seems to be only Gmail users who receive my images as attachments when they're meant to be embedded. I appreciate your testing and the info about rich text vs plain text both working as expected. The problem might be the way various users have their Gmail set up to display images. There are too many variables for me to understand. But on my newish M1 MacBook running OS 13.1, I just did the same test and in my own gmail account, I got the results I showed you in my screenshot. Even if I learn to configure my Gmail to display images embedded, I really can't tell everybody I correspond with who has gmail (dozens of people) who to set up their Gmail preferences. Any other ideas?


I've already submitted this as a bug report. I know others are having this problem but there is not much about it on Apple Discussions except from years ago.


Dec 26, 2022 1:42 PM in response to jeffsyrop

jeffsyrop wrote:

Thanks. That sounded like it might be the key, but this is how my email was set up when I conducted the test this morning:

It is interesting that your "Send Windows-Friendly Attachments" setting is disabled. Perhaps whatever is controlling your Mail formatting is also scrambling your attachments.


This is a huge problem for me and must be for others.

I've never heard of anyone complain about this problem before. In fact, it is much more common for people to complain about the way that you want Mail to work, which is the way it works for everyone else.


Are you sending from a gmail account? Can you try sending from an iCloud or other account instead? While I have a gmail account, I never use it. I think the only time I've ever used it was just now to see if I could reproduce your problem, which I can't. I see that Google has been dutifully sending me spam every day since forever. Ah, what I've missed!


But regardless, I do not have gmail configured to work with Apple Mail. I tested sending from my Exchange account and my iCloud account and both worked fine, as viewed in the gmail web interface.


Your screenshot does have a hint. It says "Scanned by gmail" with a little "info" icon that you may be able to click on. It sounds like you have some "security" software configured that is interfering with the normal operation of Apple Mail and/or your gmail account. My guess is that this software is running locally on your Mac, but I'm not familiar with gmail so don't quote me on that. But it is quite likely that an antivirus app would disassemble your e-mail message, scan your attachments for viruses, and then reassemble it incorrectly.


From what I understand, Mac antivirus software is the only protection that Windows users have against virus-lade e-mails.

Dec 26, 2022 2:01 PM in response to Kurt Lang

I did a check of my really old sent mail. Apparently, Apple Mail has only ever sent out HTML mail.


Here is a sample from 2022:

--Apple-Mail=_F3FC54B1-A017-4E94-AEF0-591F4814B49B
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
	charset=us-ascii

This is a test of rich text

--Apple-Mail=_F3FC54B1-A017-4E94-AEF0-591F4814B49B
Content-Transfer-Encoding: 7bit
Content-Type: text/html;
	charset=us-ascii

<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">This is a test of <b class="">rich</b> text<br class=""></body></html>
--Apple-Mail=_F3FC54B1-A017-4E94-AEF0-591F4814B49B--


I did manage to find some actual rich text. Check out the MIME boundary header on this:


--Cyberdog-MixedBoundary-011BB5C9
Content-Type: text/enriched; charset=US-ASCII
Content-Transfer-Encoding: 8bit
X-Fontfamily: Geneva
X-Fontsize: 12


That's 22 years ago.

Dec 26, 2022 4:19 PM in response to jeffsyrop

Circa 2008, there were Terminal commands to control how Apple Mail displayed attachments.

I have no idea whether they still work almost 15 years later.


If you'd like to try, triple-click on the boldface text line desired, Command+C to copy, and Command+V to paste it into the prompt of an open Terminal window. There were other revisions of these terminal commands using 'true' or 'false', but I found it was easier to remember that in binary 1='on', and 0='off'



The command to disable in-line attachments (attachments appear as icons)


defaults write com.apple.mail DisableInlineAttachmentViewing 1



To command to enable (and re-enable after disabling) in-line attachments (attachments appear as documents displayed in-line)


defaults write com.apple.mail DisableInlineAttachmentViewing 0


 

Dec 26, 2022 6:35 PM in response to etresoft

It is interesting that your "Send Windows-Friendly Attachments" setting is disabled. Perhaps whatever is controlling your Mail formatting is also scrambling your attachments.

Yes. This problem, for me, has persisted across 3 computers for about 9 years. I haven't studied it formally, but consistently it's Gmail users that complain about images failing to embed AND about images successfully embedding but being too wide and forcing them to scroll back and forth to read long lines of text. So for the past year I've been making sure my images are low-resolution and use only about 1/4 of the width of an email in Mail. This sometimes works but usually doesn't.


Are you sending from a gmail account?

No, Omnis is hosting my own website and email, zenhell.com.


Your screenshot does have a hint. It says "Scanned by gmail" with a little "info" icon that you may be able to click on. It sounds like you have some "security" software configured that is interfering with the normal operation of Apple Mail and/or your gmail account.

You are finding interesting possibilities. I never use any kind of antivirus on my Mac because I believe just being super rigorous about installing every OS update as soon as it's available is the best anti-virus protection I can get. In the pre-2001 days when I was a Windows user, I did use anti-virus protection because you had no choice if you wanted to keep your computer running, but Norton and McAfee often were almost as bothersome as a virus!



Dec 26, 2022 6:44 PM in response to kostby

If you'd like to try, triple-click on the boldface text line desired

I thank you very much for this suggestion, and it might actually work, but while I am comfortable using Terminal, I don't quite have the guts to try this because they are such old commands. But I sure appreciate your research and the idea that there might possibility be a way to fix this problem. As I said in this thread, to etresoft, I've had this problem across about 9 years of Macs and across many OS updates. And like I said earlier, sometimes images do embed perfectly in received emails on Gmail. The only thing that I think makes this work from time to time is the formatting of the email I'm responding to. I think it determines the format of my response, and thereby results in the frustrating successes I sometimes have in sending emails to Gmail users.

Dec 26, 2022 7:20 PM in response to etresoft

And I think that confirms it. They [Omnis] are scrambling your outgoing e-mail. Here's a dirty little secret if you didn't already know. Internet services can do one of two things well - either web services or e-mail service.

I didn't know that, but it's par for the course. I've been a heavy email user since 1994, and I've noticed that regarding email, standardization of HTML, and things like that, progress has been remarkably slow.


I'll try to come up with a simple, elegant solution to this problem. It seems likely that Omnis is scrambling my mail as you say, but it's maddening that sometimes my recipients on Gmail receive perfectly embedded images. Apple Mail and Gmail are so huge, it seems weird to me that this intermittent problem persists. People using funky Earthlink and Comcast email clients are receiving my emails correctly formatted, as are everybody opening my emails in Apple Mail.

How do you embed images (JPEG) into an Apple Mail message so it REMAINS embedded in Gmail, instead of images becoming attachments?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.