📄 sendhtml.aspx
字号:
<%@ Import Namespace="System.Web.Mail" %>
<%
Dim objMailMessage As MailMessage
Dim strHTMLBody As String
' Create the HTML Message Body
strHTMLBody = "<html><head>" & _
"<title>Thank You!</title>" & _
"</head><body bgcolor=lightblue>" & _
"<font face=Script size=6>" & _
"Thank you for registering!" & _
"</font></body></html>"
' Create the Mail Message
objMailMessage = New MailMessage
objMailMessage.From = "you@somewhere.com"
objMailMessage.To = "joe@somewhere.com"
objMailMessage.Subject = "Thanks for Registering!"
objMailMessage.Body = strHTMLBody
objMailMessage.BodyFormat = MailFormat.HTML
' Send the Mail Message
SmtpMail.Send( objMailMessage )
%>
HTML Email Sent!
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -