Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

html-email

How to force min-height on table

December 30, 2023 by Tarik

min-height doesn’t work for table elements: In CSS 2.1, the effect of ‘min-width’ and ‘max-width’ on tables, inline tables, table cells, table columns, and column groups is undefined. I can only assume this applies to td and tr as well. What should always work is wrapping the content in a div, and applying min-height to … Read more

Categories html Tags css, html, html-email Leave a comment

Best Practices – Sending javamail mime multipart emails – and gmail

December 23, 2023 by Tarik

Solved! It seems according to the multipart MIME spec, the order of the parts are important. They should be added in order from low fidelity to high fidelity. So it seems GMail follows the spec and uses the last part. In my case I had them HTML, Text. I just swapped the order to Text, … Read more

Categories java Tags html-email, jakarta-mail, java, smtp, tomcat Leave a comment

Get the actual email message that the person just wrote, excluding any quoted text

December 22, 2023 by Tarik
Categories php Tags email, html-email, parsing, php Leave a comment

How do I remove link underlining in my HTML email?

September 9, 2023 by Tarik

<a href=”#” style=”text-decoration:none !important; text-decoration:none;”>BOOK NOW</a> Outlook will strip out the style with !important tag leaving the regular style, thus no underline. The !important tag will over rule the web based email clients’ default style, thus leaving no underline.

Categories html Tags css, email-client, html, html-email, newsletter Leave a comment

Do we still need to use tags in HTML emails?

September 6, 2023 by Tarik

Sadly the accepted answer is not true, and even hideous things like @MrMisterMan’s post are still de rigeur. Deprecated as it may be, the font tag is still the only thing that works universally across pretty much all email clients, old and new. Bear in mind that email is not the web and it’s still … Read more

Categories html Tags email, html, html-email Leave a comment

Is there any sense in using the tag in HTML e-mail?

September 3, 2023 by Tarik

I’ve been looking into this myself as I’m writing a PHP mailing list manager script that uses the sendmail() function. The script allows the admin to create and send multiform emails (both text and html versions). After much testing I have found that some email servers appear to have issues with the title tag (<title></title>). … Read more

Categories email Tags email, html-email Leave a comment

How to send HTML email

August 31, 2023 by Tarik

You can pass Spanned text in your extra. To ensure that the intent resolves only to activities that handle email (e.g. Gmail and Email apps), you can use ACTION_SENDTO with a Uri beginning with the mailto scheme. This will also work if you don’t know the recipient beforehand: final Intent shareIntent = new Intent(Intent.ACTION_SENDTO, Uri.parse(“mailto:”)); … Read more

Categories android Tags android, android-intent, email, html-email Leave a comment

HTML Email iOS format-detection

August 7, 2023 by Tarik

Yes, there is. You can use: Date: <meta name=”format-detection” content=”date=no”> Address: <meta name=”format-detection” content=”address=no”> Email: <meta name=”format-detection” content=”email=no”> Combining them: <meta name=”format-detection” content=”telephone=no”> <meta name=”format-detection” content=”date=no”> <meta name=”format-detection” content=”address=no”> <meta name=”format-detection” content=”email=no”>

Categories html Tags html, html-email Leave a comment

HTML email in Gmail – CSS style attribute removed

August 7, 2023 by Tarik

As someone who regularly codes emails for marketing campaigns at my job, I feel your pain. Gmail, along with many other email clients, can be a bit funky to code for. For one, it strips out any CSS that’s outside the body. So putting in things like media queries and document level styles don’t work. … Read more

Categories gmail Tags gmail, html-email, mailchimp Leave a comment

Is there no way to embed a Google Map into an HTML email?

June 3, 2023 by Tarik

Well your own research shows that most mail clients don’t do iFrames, so what do you think can be done? This is on purpose by the way. iFrames and JavaScript are security risks that mail services don’t want to deal with. Your best bet is to get a static image of the map and embed … Read more

Categories html Tags google-maps, html, html-email, iframe Leave a comment
Older posts
Page1 Page2 … Page4 Next →

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa