Hej!
Följande exempelkod för vbscript innehåller: Wscript Vad betyder detta? Det finns ju inte i Vbscript....???
' **************************************************
' QueueEmail.vbs
' (c) Copyright 2006 by ActiveXperts Software B.V.
' [url]http://www.activexperts.com[/url]
' **************************************************
Option Explicit
Dim objSmtpServer, objSmtpMail, objConstants
Set objSmtpServer = CreateObject("ActiveXperts.SmtpServer")
Set objSmtpMail = CreateObject("ActiveXperts.SmtpMail")
Set objConstants = CreateObject("ActiveXperts.EMailConstants")
Wscript.Echo "ActiveEmail " & objSmtpServer.Version & " demo."
Wscript.Echo "Expiration date: " & objSmtpServer.ExpirationDate & vbCrLf
objSmtpMail.FromAddress = "sender@mydomain.com" ' Note that some mail servers (including MS Exchange) require an existing mail address on that server
objSmtpMail.FromName = "ActiveEmail Demo" ' Displayname
objSmtpMail.AddTo "roger@thecompany.com", "My friend Roger" ' Call this function to add multiple recipients
objSmtpMail.Subject = "Sample: Queue Email"
objSmtpMail.Body = "Hello my friend," & vbCrLf & "How are you doing?" & vbCrLf & "Regards."
objSmtpServer.Queue "smtp.mydomain.com", objSmtpMail ' If server credentails are required, pass Account name and Password as additional parameters
WScript.Echo "Queue, result: " & objSmtpServer.LastError & " (" & objSmtpServer.GetErrorDescription( objSmtpServer.LastError ) & ")"
WScript.Echo "Ready."

