Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6861147
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:29:54+00:00 2026-05-27T02:29:54+00:00

I guess it is first time I see Yahoo mail doing some thing with

  • 0

I guess it is first time I see Yahoo mail doing some thing with flying colors and Gmail failing at it. I must be missing some thing.

I used ant mail task for automated delivery of test report –

<target name="sendtestreport">
    <tstamp>
        <format property="current.time" pattern="MM/dd/yyyy hh:mm" />
    </tstamp>
    <property name="subject" value="Selenium Test Report: " />

    <mail mailhost="test.de" mailport="25" subject="${subject} ${current.time}" 
        user="seleniumtests@test.de" password="password" messagemimetype="text/html">
        <from address="seleniumtests@test.com" />
        <replyto address="test@gmail.com" />
        <to address="test@gmail.com" />     
        <message src="${basedir}\test-output\emailable-report.html">If you have trouble viewing the message then open attachment</message>
        <attachments>
            <fileset dir="${basedir}">
                <include name="**/emailable-report.html"/>
            </fileset>
        </attachments>
    </mail>
</target>

Here in I am sending emailable test report which is generated by TestNG in body (as well as attachment) of mail. In my Gmail account message is badly mis formatted, no colors are displayed, text is overlapping and misaligned. While in Yahoo mail it appears perfect.

Is there any setting I need to modify in Gmail to have message displayed in right format.
Or is it defective behavior of Gmail?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T02:29:55+00:00Added an answer on May 27, 2026 at 2:29 am

    Each e-mail client chooses how it renders HTML e-mails. Several web-based clients need to strip out CSS so you don’t hijack the look of the site. There is a minimal set of CSS selectors and HTML tags that each e-mail client chooses to allow. You probably need to make some major modifications to the emailable-report.html template so that it behaves for Gmail.

    There are entire businesses built on their skills of creating cross-client e-mail templates; it might take you quite a bit of time and research to make one that works for Gmail (as well as all the other major clients).

    Here are a few resources to get you started:

    • http://www.campaignmonitor.com/css/
    • http://www.campaignmonitor.com/resources/category-archive/cat/designing-and-building-emails/
    • http://www.sitepoint.com/code-html-email-newsletters/
    • Testing HTML email rendering

    And a million others if you poke around on Google some more.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Today I see a strange behaviour of Eclipse 3.5.2 for the first time in
First of all I guess that fatal error: maximum execution time exceeded in PHP
This is very basic magento question i guess. I want to first get all
Setting up a virtualenv for the first time, when i try to install MySQL-python
I'm pretty much using GDB for the first time. I run $ gdb then
First, please bear with me. I have hard time telling others my problem and
This is my first time posting here, but I've found a lot of answers
This question is a spin-off from this one . Some history: when I first
This is the first time - I'm trying to do something like this -
My guess is that class variables (class var) are truly global in storage (that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.