CDO.Message.1 error '80040213'
The transport failed to connect to the server.
/check.asp, line 25
Run Code Online (Sandbox Code Playgroud)
请帮忙解决这个问题
检查此代码
<%@ Language=VBScript %>
<html>
<head>
</head>
<body>
<%
dim to_field, message
to_field = Request.Form("to_field")
message = Request.Form("message")
'Create the e-mail server object
Set objCDOSYSMail = Server.CreateObject("CDO.Message")
Set objCDOSYSCon = Server.CreateObject ("CDO.Configuration")
'Out going SMTP server
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.example.com"
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
objCDOSYSCon.Fields("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
objCDOSYSCon.Fields.Update
'Update the CDOSYS Configuration
Set objCDOSYSMail.Configuration = objCDOSYSCon
objCDOSYSMail.From = "admin@example.com" ' the address you want …Run Code Online (Sandbox Code Playgroud) 如何在PHP中的数字前添加空格,以获得如下输出?
9
10
100
Run Code Online (Sandbox Code Playgroud)
我正在使用str_pad($k,3,'',STR_PAD_LEFT),但空白区域无效.我不想要前导零,但我想要空格.