After a long time, I couldn't receive emails. It turned out that the parameter was set incorrectly. The complete source code is as follows:
<%
MailServer = "172.16.1.130" 'smtp server address
mailname = "bany@banysky.com" 'mail mailbox
mailpassword = "bany" 'mail Password
usermail = "bany@banysky.com"
dim MSG
clstr = CHR (13) & CHR (10)
set MSG = server. createobject ("jmail. message ")
MSG. silent = true
MSG. logging = true
MSG. charset = "gb2312"
MSG. mailserverusername = mailname
MSG. mailserverpassword = mailpassword
MSG. from = mailna Me
MSG. fromname = mailname
MSG. addrecipient (usermail) 'usermail is the recipient's mailbox
MSG. subject = "you registered" & sitename & "
MSG. body = username & ", hello! "& Clstr
MSG. body = MSG. body & "Congratulations! You registered successfully. Member ID:" & userid & ", Login Password:" & user_password & clstr
MSG. body = MSG. body & sitename & "(" & siteurl & ") welcome to join us! Thank you! "& Clstr
MSG. Send (MailServer)
MSG. Close
set MSG = nothing
%>
Configure the Member registration system to activate the email. If you are interested, try it.