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:
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
%>
Please do not hesitate to contact our support department with any possible further questions or to solve practical issues connected with Command line email.