Using MailMessage email = new MailMessage();email.IsBodyHtml = true;
Can I set a font for a message?
Also, maybe it's a fad, but the p and br tags come out the same way for me? This is normal?
You can use CSS:
<style> p {color:#999; font-family:arial;} /*grey*/ </style>
You are limited by what fonts are installed on the receiving machine.
I would suggest exploring the use of a style sheet attribute to change the font size.
Not sure what you mean by "and tags come out the same for me" ... come out the same way as what?
... Charles beat me to her
HTML .,
<body>
HTML email-standards.org
css . html, html .
, break paragraph .
, . - .
css.
Source: https://habr.com/ru/post/1703547/More articles:A form message sends values ββthrough Request.QueryString instead of Request.Form - htmlWhen to Use EJB Transaction Attributes Required and Never - javaOne MSI for two different installations - visual-studioHow to authenticate on native OS in Java and without using JNI? - javapycurl fails, but curl (from bash) works in ubuntu - pythonHow to identify pending asynchronous wcf calls? - user-interfaceJavascript - trying to wrap your head around custom events - javascriptWindows Installer uses build version or file version to update dlls - versioningHow do you wait / join a WCF web service called Silverlight? - web-servicesPacking multiple functions into a single WSP solution file - sharepointAll Articles