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