Question: Using QK SMTP
Server from ASP code
Dear Sir,
Is it possible to use QK SMTP server from an ASP script?
If yes, would you please provide me with an example.
Regards
Answer:
QK SMTP Server can not only work with kinds of mail clients,
but also can set with ASP code discreteness of sending mails,
such as JMail, webeasymail, MyEmail, etc.. The following is
the JMail's common used code for sending mails:
<%
Set msg = Server.CreateObject("JMail.Message")
msg.silent = true
msg.Logging = true 'If QK sets "needn't user authentication",
False'
msg.MailServerUserName = "user" 'This item is for
you to set logging in accounts in QK'
msg.MailServerPassword = "pass" 'This item is for
you to set the pass word in QK'
msg.From = "sales@abc.com" 'addresser' s Email'
msg.FromName = "xxx" 'addresser' s name'
msg.AddRecipient "tech@bcd.com" 'recipients' Email'
msg.Subject = "Jmail send test" 'The mail Subject'
msg.Body = "This is the mails which send via Jmail discreteness"
'The mail text'
msg.Send ("127.0.0.1") 'SMTP Server address, add
the IP address which is running QK, the local IP is 127.0.0.1'
msg.close()
set msg = nothing
%>
Lynn
|