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

Set Up Aliased Nameservers

Aliased name servers allow our resellers to completely hide LFC Hosting from WHOIS lookups on...

Root Folder Path. How to set to inbox in outlook 2019?

I just upgraded to outlook 2019, from 2010. I set up my IMAP email account, all folders are...

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...

How to Set Up your Email in Outlook 2013

Setting up Outlook 2013 When you first open Outlook, it will provide a "Welcome to Outlook...

Why do I have a 500 Error?

By default, our Windows hosting accounts display a generic error when applications generate an...