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

Setting up a permanent 301 redirect via .htaccess

A permanent 301 redirect in your .htaccess file lets search engines and others know that an old...

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 Microsoft SQL Server

This discussion assumes that you have basic knowledge of Microsoft SQL Server and the client...

Setting up emails account on iPhone, iPad and MacBooks devices

Setting up your Apple device with email is easy thanks to our iStaller. In Safari on your device,...

Using .NET Core

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