This page provides information on use of utility Command line email client in ASP (Internet Information Services - Active Server Pages) script. By using Febooti Command line email you can:

  • Send email message using plain text or HTML message with embedded pictures.
  • Send unlimited number of attachments.
  • Use return codes to check success or failure.
  • Works on Microsoft Windows (98 / Me / NT / 2000 / XP / Vista / Windows 7 / 2003 / 2008) including all server versions.
  • And many more options...

Example for ASP script:

''' Febootimail ASP email '''
<%
  ' Send e-mail from ASP and output the result.
  ' (On a MS Window operating system with
  ' the "febootimail.exe" executable in the path).


  Dim StrServer
  Dim StrBody
  Dim StrSubj
  Dim StrCommand

  StrSubj = "ASP mail"
  StrServer = " -SMTP smtp.sender.com -PORT 25"

  StrBody = "This is <I>HTML / MIME</I> e-mail sent from "
  StrBody = StrBody & "ASP script with <B>Command line email</B>"

  StrCommand = "febootimail.exe -HTML -MIME -FROM web@sender.com "
  StrCommand = StrCommand & "-TO john@sender.com -SUBJ " & StrSubj
  StrCommand = StrCommand & " -BODY " & StrBody & StrServer

  Set wsShell = server.createobject("wscript.shell")
  Set proc = wsShell.Exec(StrCommand)
  Dim s : s = ""

  Do While proc.Status = 0
  Loop

  s = s & "<BR>StdOut=" & proc.StdOut.ReadAll()
  s = s & "<BR>ExitCode=" & proc.ExitCode
  response.write(s)

  Set wsShell = nothing
  Set proc = nothing

  ' For detailed information about result codes, see:
  ' www.command-line-email.com/online-help/batch-file-errorlevel.html

%>
Additional Command line email notes and resources:
Send command line email from MS Excel VBA macroSend command line email from MS Word VBA macroSend command line email from MS Access VBA macro
Email from MS Excel, Word and Access

Please do not hesitate to contact our support department with any possible further questions or to solve practical issues connected with Command line email.

Copyright © 2001-2011 Febooti Software. All rights reserved. Last updated: August 31, 2009