testing Blat!

 
Post new topic   Reply to topic    Aprelium Forum Index -> Perl
View previous topic :: View next topic  
Author Message
solid982
-


Joined: 30 Sep 2004
Posts: 6

PostPosted: Sat Oct 02, 2004 12:24 am    Post subject: testing Blat! Reply with quote

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 View user's profile Send private message
solid982
-


Joined: 30 Sep 2004
Posts: 6

PostPosted: Thu Oct 07, 2004 3:55 pm    Post subject: Reply with quote

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 View user's profile Send private message
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Fri Oct 08, 2004 12:14 am    Post subject: Reply with quote

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 View user's profile Send private message
solid982
-


Joined: 30 Sep 2004
Posts: 6

PostPosted: Fri Oct 08, 2004 12:21 pm    Post subject: Reply with quote

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 View user's profile Send private message
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Fri Oct 08, 2004 6:09 pm    Post subject: Reply with quote

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 View user's profile Send private message
namtog
-


Joined: 27 Oct 2004
Posts: 2

PostPosted: Thu Oct 28, 2004 9:49 pm    Post subject: Blat Install and Test Reply with quote

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 View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> Perl All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group