Using Sendmail

Sendmail is primarily a UNIX mailer daemon used to send e-mail. Many scripts call this program blindly because it is almost always on a system for use when sending e-mail. On our Windows servers, we use a Sendmail replacement called Windmail, which is located in e:\web\etc\windmail\ and is called windmail.exe. The full path to Windmail (sendmail) is:

E:\web\etc\windmail\windmail.exe

You invoke Windmail in very much the same way that you would invoke Sendmail on a UNIX platform:

Windmail.exe -t

This will prompt you for further input, which you would structure as follows:

To: somewhere@somewhere.com
From: yourself@yourdomain.com
Subject: Test

Testing
.

The final dot is important because it marks the end of the message and indicates that the message should be queued for sending. Also note that each line needs a linefeed after it, including the final line with the dot.

As you can see, sending e-mail from a CGI script on Windows is just as simple as sending e-mail from a CGI script on a UNIX platform.

Was this answer helpful?

 Print this Article

Also Read

How to Upload a Website

To upload files to your Shared hosting account, use FTP SSL.You need to use an FTP program and we...

Using PHP

PHP is an embedded-HTML, server-side, cross-platform scripting language that is extremely popular...

Using .NET Core

LFC Hosting fully supports Microsoft .NET Core 2.To enable .NET Core you need to configuration an...

How to Disable an Outlook Email Account But Not Delete It

When you want to stop using an email account with Microsoft Outlook, you can disable the...

eMails on my domain are being spoofed

If you start seeing a bunch of emails bouncing back to you that you did not send, your domain is...