Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

How can I send a HTML message from Gmail?

HTML:

<p style="background-color:green; padding: 30px;">Hello</p>
share|improve this question
add comment

5 Answers

up vote 4 down vote accepted

Usually you can write that into an HTML file, render it, and copy the email from the browser into Gmail's compose pane.

share|improve this answer
    
What about <body style="backcolor:red;"></body> ? –  faressoft Dec 4 '10 at 17:13
    
@faressoft Use Thunderbird in that case. –  digitxp Dec 4 '10 at 18:17
    
Do you mean insert > HTML ? Noting changed when i put <body style="backcolor:red;"></body> in it ! –  faressoft Dec 4 '10 at 19:56
1  
I doubt any email program would let you do that. It's better to make a <div> and style that. Thought it could also be that you meant bgcolor and not backcolor... –  digitxp Dec 4 '10 at 20:43
    
+1 This works. To test simply open an email in Gmail itself. Preferably the one which is sent through some email client which has HTML enabled and has images in it. Select it's content. Copy. And paste it into the compose pane. Yes just make sure that you have Rich formatting selected in the compose options as shown by @Nigel –  iSid May 24 '11 at 10:34
add comment

Rich Test Formatting 1

Rich text formatting 2 In gmail web client, the easiest way to click on Rich formatting >> that would open up the formating tools and select whatever formating your want instead of composing it somewhere else and pasting it.

share|improve this answer
    
How do I do a heading? –  richard Feb 7 '12 at 11:45
add comment

Google does not support this feature: (Source)

Please note that Gmail doesn't recognize HTML tags inserted in the body of a message

However, it might be possible with an external 3 party application such as Outlook or ThunderBird.


Outlook 2003 or earlier had option to send HTML via File > Send > Page by Email. However, Microsoft have removed this feature for security reasons in Outlook 2007 and 2010. Here is an article that explains Microsoft's actions. There is a 'grass-roots effort' to get this feature added back Outlook. For more information about his movement visit FixOutlook.org.

share|improve this answer
    
thank you. Iam using Outlook but I don't know how can I send a html code. How can I do that ? –  faressoft Dec 4 '10 at 15:57
    
I don't use Outlook anymore so I am not completely sure. I did find this page with 4 methods to HTML emails. –  SgtOJ Dec 4 '10 at 16:13
    
@SgtOJ, I think your source is outdated................. –  Pacerier Sep 30 '13 at 5:34
add comment

I think you should use a client that lets you write HTML email and set it up to use your gmail account. I don't think you can do it from Gmail's web interface.

Sending HTML email with Outlook express and Thunderbird: http://webdesign.about.com/od/intermediatetutorials/a/aa050800b.htm

Not sure how to directly input HTML in an email using outlook.

share|improve this answer
add comment

Body is not an acceptable tag in gmail, and most email clients disregard backgrounds unless they're in divs.

There's a great resource on the subject of what email clients support and don't support called the Email Standards Project.

As for entering html in gmail, you're going to have to do the copy paste thing that digitxp said, but don't include the html, head or body tags, just the content tags.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.