Using Blat mail with ASP?

Results 1 to 2 of 2

Thread: Using Blat mail with ASP?

  1. #1
    Join Date
    Dec 1969

    Default Using Blat mail with ASP?

    Can I use Blat to send mail via an ASP page (VBScript)? If so, how?<BR><BR>Thanks!

  2. #2
    Neils Guest

    Default RE: Using Blat mail with ASP?

    You can use Blat through ASP, however, you need to have access to the server to install Blat on it. Once that is done, here is how you do the rest.<BR><BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~<BR>&#039create a shell object<BR>Set objWSH = Server.CreateObject("WScript.Shell")<BR><BR>&#039a ssemble the command line<BR>strCMD = "cmd /c c:latlat.exe -t"<BR><BR>&#039execute the command line<BR>intReturn = objWSH.Run(strCMD, 0, True)<BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~<BR><BR>A couple of notes:<BR>strCMD has to begin with "cmd /c" to work as far as I know. Make sure that the path to blat.exe is correct.<BR><BR>You can also check the value of intReturn, which will contain the return value from blat. If it is zero, everything worked fine, otherwise there was an error executing Blat.<BR><BR>Hope this helps<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts