sendmail.asp
来自「ASP原码」· ASP 代码 · 共 40 行
ASP
40 行
<%
' Create the JMail message Object
set msg = Server.CreateOBject( "JMail.Message" )
msg.Logging = true
msg.silent = true
msg.MailServerUserName="test@iactive.com.cn"
msg.MailServerPassword="test"
msg.From = "test@iactive.com.cn"
msg.FromName = "test"
'msg.AddRecipient "test@iactive.com.cn", "His Name"
msg.AddRecipient "recipientelle@herDomain.com"
' The subject of the message
msg.Subject = "重要通知"
' The body property is both read and write.
' If you want to append text to the body you can
' use JMail.Body = JMail.Body & "Hello world! "
' or you can use JMail.AppendText "Hello World! "
' which in many cases is easier to use.
'
' Note the use of vbCrLf to add linebreaks to our email
msg.Body = "Hello Jim" & vbCrLf & vbCrLf & "How's it going? ..."
' To capture any errors which might occur, we wrap the call in an IF statement
if not msg.Send( "www.iactive.com.cn" ) then
Response.write "<pre>" & msg.log & "</pre>"
else
Response.write "Message sent succesfully!"
end if
' And we're done! the message has been sent.
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?