Make a name on the Web
 
 
Windows 2000 Hosting Care

BLAT Mailer

The BLAT CGI accepts both GET and FORM CGI usage
Usage :

1) http://yourdomain.com/cgi-mail/blat.exe
   
Your HTTP request must contain some vars with the command line.:
        TO :            the -t parameters of Blat
        CC :            the -c parameters of Blat
        BCC :           the -b parameters of Blat
        SENDER :        the -f parameters of Blat
        FROM :          the -i parameters of Blat
        ORGANISATION :  the -o parameters of Blat
        SERVER :        the -server parameters of Blat
        SUBJECT :       the -s parameters of Blat
        PORT :          the -port parameters of Blat
        HOSTNAME :      the -hostname parameters of Blat
        TIMEOUT :       the -ti parameter of Blat

These Variable are Boolean (if present and set TO "1" or "Y", added the option, if not present or set TO "N" or "0", remove the option)

        NOH :           the -noh parameters of Blat
        NOH2 :          the -noh2 parameters of Blat
        MIME :          the -mime parameters of Blat
        UUENCODE :      the -uuencode parameters of Blat
        BASE64 :        the -base64 parameters of Blat
        REQUESTRECEIPT :the -r parameter of Blat
        NOTIFY :        the -d parameter of Blat

You can prefix these var name bu "Blat_" (ie using BLAT_SUBJECT instead SUBJECT) if you don't want see the variable content in the message.

Blat_success and Blat_failure will contain the URL for success and failure messages.


Example of HTML page using blat

<HTML><BODY>
GET test:<br>

<FORM ACTION="/cgi-mail/blat.exe" METHOD="GET">
Enter here your email
Sender: <INPUT TYPE="text" SIZE="20" NAME="Sender" VALUE="myname@mydomain.com">
<br>
<INPUT TYPE="text" SIZE="20" NAME="TO" VALUE="webmaster@yourdomain.com">
<br>
<INPUT TYPE="text" SIZE="20" NAME="Blat_Subject" VALUE="Another cool tool by IWI">
<br>
SMTP Server: <INPUT TYPE="text" SIZE="20" NAME="SERVER" VALUE="202.136.4.15">
<br>
<INPUT TYPE="text" SIZE="20" NAME="Var2" VALUE="Var_2">
<br>
<INPUT TYPE="text" SIZE="20" NAME="Var3" VALUE="Var_3">
<br>
<INPUT TYPE="hidden" NAME="Blat_success" VALUE="http://yourdomain.com/good.htm">
<INPUT TYPE="hidden" NAME="Blat_failure" VALUE="http://yourdomain.com/bad.htm">
<INPUT TYPE="hidden" NAME="Blat_Mime" VALUE="Y">
<INPUT TYPE="submit" VALUE="submit"><BR>
</form></BODY></HTML>


Note: Do not change the value for NAME="SERVER" VALUE="202.136.4.15".

Back to Windows Care

 
© Copyright 2005. IT Works Interactive.  Privacy   Disclaimer   AUP   Information Security Policy