user9183335
user9183335

Reputation:

Insert HTML into email in Apple Mail

Is there a way to insert pure html into an email via Apple’s desktop Mail app (ie. creating a newsletter, tables, etc.)?

I know you’re able to do this on Mac OS via Thunderbird, just wondering if there’s a reliable method or extension for Apple Mail specifically.

Upvotes: 3

Views: 20968

Answers (4)

Aristidios
Aristidios

Reputation: 2321

To expand on what TheycallmeXiaoli said :
  1. Create a new mail in apple "Mail.app", write Bonjour then hit cmd + s.

  2. Find your draft at the left panel of "Mail.app". Drag it onto your desktop.

  3. Edit the draft file with any text editor you like (ex: TextEdit)

  4. Search for the word Bonjour you wrote earlier - Replace ONLY this Bonjour with your ENTIRE html code then save the file.

do not delete anything else ! don't replace the current HTML tag just the word Bonjour

  1. In the Mail App Select File -> Import Mail Boxes

Select "Apple Mail" & import the edited file.

  1. You will see your mail at the left panel of Mail App

most likely inside an "imported" folder

  • Drag the file into your "Draft" mailbox.

Finally open the mail, fill in To, CC, Subject, etc, and send your pure HTML mail.

: )

Thanks so much TheycallmeXiaoli !

Upvotes: 0

TheycallmeXiaoli
TheycallmeXiaoli

Reputation: 311

Having been seeking for solution for so long. Both cmd + a then cmd + c or cmd + i in Safari may drop some style/script. Occasionally I found a nealy perfect solution by myself.

  1. Create a new mail in apple "Mail.app", write anything then hit cmd + s.
  2. Find your draft at the left panel of "Mail.app". Drag it onto your desktop.
  3. Edit the draft file with any text editor you like. See some html source code at the bottom of the draft file? Replace them with the html code you want to send then save the file.
  4. Open "File" - "Import Mailboxes" in "mail.app". Select "Apple Mail", import the edited draft file.
  5. You will see your mail at the left panel of "Mail.app". Drag it into a "Draft" mailbox.
  6. Finally open the mail, fill in To, CC, Subject, etc, and send your pure HTML mail.

Upvotes: 21

Rado
Rado

Reputation: 21

I was also looking for a solution and found this thread. Here is how I paste code into Apple Mail: Copy your code into the code beautifier at http://hilite.me/. Then save the generated HTML to a file and open that in Safari and Press command + i as Creaforge said (thanks for the tip).

Upvotes: 2

GuCier
GuCier

Reputation: 7405

There is a "simple" way : open your html content in Safari, then press command + i

The html content of the page will be inserted in the body of a new mail message.

Upvotes: 10

Related Questions