Probably shouldn't be in the PHP area but hey-ho.
I've just finished coding my own email class{} and was wondering if it's wise to send emails in the XHTML format.
Outlook Express seems to handle it ok, has anyone tried it with any other email progs?
XHTML Mime-based Emails
Moderator: General Moderators
- Fredix
- Forum Contributor
- Posts: 101
- Joined: Fri Jul 18, 2003 2:16 pm
- Location: Wehr (Eifel) Germany
- Contact:
Re: XHTML Mime-based Emails
Only if you are absolutely sure that there is absolutely no way doing without HTML stuff in your mails. It think that there most users would be grateful if they receive emails that are not HTML formatted (or at least I would be). If you use HTML you should offer both possibilities (text and HTML emails)Gen-ik wrote: and was wondering if it's wise to send emails in the XHTML format.
Not too sure what you mean.volka wrote:which content-type do you set?
good ol' text/html or appliation/xhtml+xml ?
The basic XHTML template I use for the emails is this..
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title> ї:subject:] </title>
<style type="text/css"> ї:style:] </style>
</head>
<body>
ї:message:]
</body>
</html>If the email is mime-based then there are two parts to it.... text/plain and text/html.
Re: XHTML Mime-based Emails
The type of email sent depends on which Email Format the user has selected.. either HTML or Plain-text.Fredix wrote:Only if you are absolutely sure that there is absolutely no way doing without HTML stuff in your mails. It think that there most users would be grateful if they receive emails that are not HTML formatted (or at least I would be). If you use HTML you should offer both possibilities (text and HTML emails)Gen-ik wrote: and was wondering if it's wise to send emails in the XHTML format.