Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can send email without Outlook in VBScript using the <strong>CDO.Message</strong> object. You will need to know the address of your SMTP server to use this:</p> <pre><code>Set MyEmail=CreateObject("CDO.Message") MyEmail.Subject="Subject" MyEmail.From="name@domain.com" MyEmail.To="a@a.com" MyEmail.TextBody="Testing one two three." MyEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusing")=2 'SMTP Server MyEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver")="smtp.server.com" 'SMTP Port MyEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25 MyEmail.Configuration.Fields.Update MyEmail.Send set MyEmail=nothing </code></pre> <p>If your SMTP server requires a username and password then paste these lines in above the <code>MyEmail.Configuration.Fields.Update</code> line:</p> <pre><code>'SMTP Auth (For Windows Auth set this to 2) MyEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate")=1 'Username MyEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendusername")="username" 'Password MyEmail.Configuration.Fields.Item ("http://schemas.microsoft.com/cdo/configuration/sendpassword")="password" </code></pre> <p>More information on using CDO to send email with VBScript can be found on the link below: <a href="http://www.paulsadowski.com/wsh/cdo.htm">http://www.paulsadowski.com/wsh/cdo.htm</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload