View previous topic :: View next topic |
Author |
Message |
solid982 -
Joined: 30 Sep 2004 Posts: 6
|
Posted: Sat Oct 02, 2004 12:24 am Post subject: testing Blat! |
|
|
okay,
i think i've install blat correctly. not sure though...
does anybody know a simle script to test this program??
many thanks. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
solid982 -
Joined: 30 Sep 2004 Posts: 6
|
Posted: Thu Oct 07, 2004 3:55 pm Post subject: |
|
|
nebody know whats wrong with this script?
Quote: |
# The following sends the email
open (MESSAGE,"| \blat.exe -t");
print MESSAGE "To: $FORM{submitaddress}\n";
print MESSAGE "From: $FORM{name}\n";
print MESSAGE "Reply-To: $FORM{email}\n";
print MESSAGE "Subject: Feedback from $FORM{name} at $ENV{'REMOTE_HOST'}\n\n";
print MESSAGE "The user wrote:\n\n";
print MESSAGE "$FORM{feedback}\n";
close (MESSAGE);
&thank_you;
} |
|
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Anonymoose -
Joined: 09 Sep 2003 Posts: 2192
|
Posted: Fri Oct 08, 2004 12:14 am Post subject: |
|
|
Nothing apparent. It is expecting Blat to be in the path or the same dir as the script as far as I can see. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
solid982 -
Joined: 30 Sep 2004 Posts: 6
|
Posted: Fri Oct 08, 2004 12:21 pm Post subject: |
|
|
thats what i thought. when i try the script it wont send mail. but the log file shows this problem:
Quote: |
'lat.exe' is not recognized as an internal or external command,
operable program or batch file.
whats does it mean? |
|
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Anonymoose -
Joined: 09 Sep 2003 Posts: 2192
|
Posted: Fri Oct 08, 2004 6:09 pm Post subject: |
|
|
It is taking \b as part of a regular expression giving it the filename lat.exe instead of blat.exe - try removing the \ after the |, or using \\Blat.exe then check the log again. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
namtog -
Joined: 27 Oct 2004 Posts: 2
|
Posted: Thu Oct 28, 2004 9:49 pm Post subject: Blat Install and Test |
|
|
Greetings solid982,
You are calling Blat with sendmail syntax. Blat has it's own way of talking. To install and send a test email is something you can do that from the command prompt. Below is generic install that might work for you. This is if you use AUTH. Check your email client and see how it is set up.
Install the preset values for blat. If your isp has a odd setup, like other then port 25
for email you will have to change this. See the doc file that came with blat. Type the
following exactly, including the spaces.
blat -install smtp.your.isp your@email.com - - - yourloginname yourpassword (press enter)
Let's check blat to make sure it works. Send a email to a yahoo or hotmail account. Any place
other then your ISP. First we will send a plain email, then one with a file for the body. Type;
blat - -to someplace.com -subject test -body yadda (press enter)
Now with a file, first create a new file with notepad, it can be empty, and place it in your
cgi-bin. Name it test.txt Now type;
blat test.txt -to someplace.com -subject filetest (press enter)
I wrote a small tool to help people install and test Blat. It's at
http://nbi.namtog.com
For more help with Blat try the Yahoo Blat Group.
http://groups.yahoo.com/group/blat/
Namtog |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
|