最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
asp 发送邮件代码,支持外国主机
时间:2022-06-30 11:32:38 编辑:袖梨 来源:一聚教程网
<%
sendUrl="http://schemas.microsoft.com/cdo/configuration/sendusing"
smtpUrl="http://schemas.microsoft.com/cdo/configuration/smtpserver"
' Set the mail server configuration
Set objConfig=CreateObject("CDO.Configuration")
objConfig.Fields.Item(sendUrl)=2 ' cdoSendUsingPort
objConfig.Fields.Item(smtpUrl)="relay-hosting.secureserver.net"
objConfig.Fields.Update
' Create and send the mail
Set objMail=CreateObject("CDO.Message")
' Use the config object created above
Set objMail.Configuration=objConfig
objMail.From="[email protected]"
objMail.ReplyTo="[email protected]"
objMail.To="[email protected]"
objMail.Subject="subject"
objMail.TextBody="body"
objMail.Send
%>
相关文章
- 《这城有良田》仓廪有实有哪些玩法 06-16
- 《元梦之星》枪械瞄准哪些方法效果更好 06-16
- 《桃花师》改名可行的方法有哪些 06-16
- SNORT币是骗局吗?2025币安交易所赚币攻略 06-16
- 如何交易5GASS币?2025OKX交易所高效攻略 06-16
- 《花亦山心之月》莹儿头像获得方法有哪些 06-16