Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

When sending an HTML e-mail, is there any sense in using the <title> tag? In the PHP Manual, for instance, they use such a tag in their main sample code. However, I see no reason why an e-mail client would use this title and not the Subject from the e-mail. Is there any reason to set this tag?

like image 585
User402841 Avatar asked Sep 02 '12 16:09

User402841


People also ask

Should HTML email have title?

Placing title tags in email html can be helpful for some email clients such as MS Outlook for better rendering. However, there are some email providers that don't like this, and sometimes prevents recipients from getting your email.

Is title tag necessary in HTML?

The title must be text-only, and it is shown in the browser's title bar or in the page's tab. The <title> tag is required in HTML documents! The contents of a page title is very important for search engine optimization (SEO)!

What is the purpose of title tag in HTML?

The <title> HTML element defines the document's title that is shown in a browser's title bar or a page's tab. It only contains text; tags within the element are ignored. Metadata content. Text that is not inter-element whitespace.

Which tag is used for email?

HTML Email Tag HTML <a> tag provides you option to specify an email address to send an email. While using <a> tag as an email tag, you will use mailto: email address along with href attribute.


1 Answers

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>).

I created a test email and sent it to 5 of my email address, my @blueyonder.co.uk email failed to arrive but the 4 others had no problems.

After a process of elimination it turned out that the @blueyonder.co.uk mail servers did not like the title tags in the html part of the email message, when I removed the tag the email arrived no probs.

Very strange!

like image 167
john Avatar answered Sep 20 '22 11:09

john