Quick Links
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 / 2003 / XP / Vista) including all server versions.
- And many more options...
Sample 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:
- febooti Command line email utility parameters.
- Please don't use this tool to send Unsolicited Commercial Email (SPAM).
- Overview on how to send email from VBA (Visual Basic for Application) macro.
- You must be familiar with ASP (Active Server Pages) in order to use this email sending example.
Please do not hesitate to contact our support department with any possible further questions or to solve practical issues connected with Command line email.


