The simplest is to use the Cdonts.newmail component
CDONTS. The NewMail component is a self-contained component of IIS that can be used directly as long as the server does not have shutdown permissions
Set mailobject = Server.CreateObject ("CDONTS. NewMail ")
Mailobject.from = "Letter Mailbox"
Mailobject.to = "Receiving Mailbox"
mailobject.cc = "CC Mailbox"
MAILOBJECT.BCC = "Secret Send Mailbox"
Mailobject.subject = "message subject"
Mailobject.body = "message content"
Mailobject.mailformat = 0 ' message format, 0 is MIME format, 1 is text message
Mailobject.bodyformat = 0 ' text format for message, 0 for HTML format, 1 for plain text
Mailobject.importance = 1 ' Importance of mail, 0 is for low importance, 1 is normal, 2 means high importance
Mailobject.attachfile "Attachment absolute path", "Attachment name"
Mailobject.send
Set Mailobject = Nothing