Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dim objBuilder
- objBuilder = New StringBuilder
- objBuilder.Append(Resources.SystemEmail.CSSStyle)
- objBuilder.Append("My Styled Email")
- Dim _Body As String = objBuilder.ToString()
- <STYLE TYPE="text/css">
- <!--
- body
- {
- font-family: Tahoma, Verdana, Arial;
- font-size: 10pt;
- padding: 3px 0px 0px 0px;
- margin: 0px 0px 0px 0px;
- }
- -->
- </STYLE>
- Dim client As New SmtpClient("localhost")
- Dim toAddr As New MailAddress(MailRecipients)
- Dim fromAddr As New MailAddress(MailFrom)
- Dim message As New MailMessage(fromAddress, toAddress)
- message.Subject = "The Subject"
- message.Body = _Body
- message.IsBodyHtml = True
- message.BodyEncoding = System.Text.Encoding.UTF8
- client.Send(message)
Add Comment
Please, Sign In to add comment