Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Change color of font in the subject line of an email?

371 views
Skip to first unread message

Marco Shaw [MVP]

unread,
Mar 18, 2009, 9:56:24 AM3/18/09
to
akcorr wrote:
> Anyone know if you can change the color of the font in the subject line of an
> email?

I don't think the SMTP/IMAP/POP protocols actually support that...

Can you provide more details? You want to change it on your local machine?

Marco

--
*Microsoft MVP - Windows PowerShell
https://mvp.support.microsoft.com/profile/Marco.Shaw
*Co-Author - Sams Windows PowerShell Unleashed 2nd Edition
*PowerShell Co-Community Director - http://www.powershellcommunity.org
*Blog - http://marcoshaw.blogspot.com

Karl Mitschke

unread,
Mar 18, 2009, 12:41:16 PM3/18/09
to
Hello akcorr,

> I just wanted whatever was in the $subject variable to show in red:
>
> $SmtpServer = " "
> $From = " "
> $To = " "
> $subject = " "
> $Body = " "
> $smtp = new-object system.net.mail.smtpClient($SmtpServer)
> $mail = new-object System.Net.Mail.MailMessage
> $mail.From = $From
> $mail.To.Add($To)
> $mail.Subject = $subject
> $mail.Body = $Body
> $mail.IsBodyHtml = $True
> $smtp.Send($mail)

An e-mail subject is plain text, as are the rest of the contents of the header.
You cannot assign a font, much less modify font properties.

Karl


Marco Shaw [MVP]

unread,
Mar 18, 2009, 1:29:14 PM3/18/09
to

> An e-mail subject is plain text, as are the rest of the contents of the
> header. You cannot assign a font, much less modify font properties.

There is a trick to hard code a message ID, which will cause Outlook to
flag it... I can't remember how to do it (or find it right now).

I'd say this is something that will have to be supported by the mail
client...

Al Dunbar

unread,
Mar 19, 2009, 1:20:19 AM3/19/09
to

"akcorr" <akc...@discussions.microsoft.com> wrote in message
news:686AB85B-4FC4-4574...@microsoft.com...

>I just wanted whatever was in the $subject variable to show in red:

Sounds like you may need a pair of rose-coloured glasses.

/Al

> $SmtpServer = " "
> $From = " "
> $To = " "
> $subject = " "
> $Body = " "
>
> $smtp = new-object system.net.mail.smtpClient($SmtpServer)
> $mail = new-object System.Net.Mail.MailMessage
> $mail.From = $From
> $mail.To.Add($To)
> $mail.Subject = $subject
> $mail.Body = $Body
> $mail.IsBodyHtml = $True
> $smtp.Send($mail)
>
> "Marco Shaw [MVP]" wrote:
>

0 new messages